This commit is contained in:
Max Lv
2015-12-15 18:25:24 +08:00
parent 88b875370e
commit e82c7ccb99
2 changed files with 9 additions and 9 deletions
@@ -221,8 +221,10 @@ class AppManager extends AppCompatActivity with OnCheckedChangeListener with OnC
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE, PixelFormat.TRANSLUCENT))
findViewById(R.id.onSwitch).asInstanceOf[Switch]
.setOnCheckedChangeListener((button: CompoundButton, checked: Boolean) => {
ShadowsocksApplication.settings.edit().putBoolean(Key.isProxyApps, true).commit()
val onSwitch = findViewById(R.id.onSwitch).asInstanceOf[Switch]
onSwitch.setChecked(true)
onSwitch.setOnCheckedChangeListener((button: CompoundButton, checked: Boolean) => {
ShadowsocksApplication.settings.edit().putBoolean(Key.isProxyApps, checked).commit()
finish()
})