fix #37
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 869 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
@@ -574,6 +574,7 @@ class Shadowsocks
|
||||
Shadowsocks.currentProfile = profileManager.reload(id)
|
||||
updatePreferenceScreen()
|
||||
menuAdapter.setActiveId(id)
|
||||
menuAdapter.notifyDataSetChanged()
|
||||
}
|
||||
}, 600)
|
||||
|
||||
@@ -637,19 +638,6 @@ class Shadowsocks
|
||||
buf.toList
|
||||
}
|
||||
|
||||
override def onKeyDown(keyCode: Int, event: KeyEvent): Boolean = {
|
||||
if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount == 0) {
|
||||
try {
|
||||
finish()
|
||||
} catch {
|
||||
case ignore: Exception => {
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
super.onKeyDown(keyCode, event)
|
||||
}
|
||||
|
||||
override def onOptionsItemSelected(item: MenuItem): Boolean = {
|
||||
item.getItemId match {
|
||||
case android.R.id.home => {
|
||||
|
||||
Reference in New Issue
Block a user