Revert a change

This commit is contained in:
Mygod
2015-12-15 17:58:21 +08:00
parent 88b875370e
commit 3108306b6e
@@ -66,10 +66,8 @@ class ShadowsocksSettings extends PreferenceFragment with OnSharedPreferenceChan
super.onResume()
isProxyApps.setChecked(ShadowsocksApplication.settings.getBoolean(Key.isProxyApps, false)) // update
isProxyApps.setOnPreferenceChangeListener((preference: Preference, newValue: Any) => {
if (newValue.asInstanceOf[Boolean] == true) {
startActivity(new Intent(activity, classOf[AppManager]))
}
true
startActivity(new Intent(activity, classOf[AppManager]))
newValue.asInstanceOf[Boolean] // keep it ON
})
}