Refine #478
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user