Fix crashing bugs

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2019-02-15 11:09:32 +01:00
parent a5605fc89f
commit ec086b61c4
2 changed files with 0 additions and 9 deletions

View file

@ -219,12 +219,4 @@ public class BaseActivity extends AppCompatActivity {
super.onStop(); super.onStop();
eventBus.unregister(this); eventBus.unregister(this);
} }
@Override
public void onPause() {
super.onPause();
if (!disposable.isDisposed()) {
disposable.dispose();
}
}
} }

View file

@ -392,7 +392,6 @@ public class SettingsController extends BaseController {
screenLockTimeoutChoicePreference.setEnabled(false); screenLockTimeoutChoicePreference.setEnabled(false);
appPreferences.removeScreenLock(); appPreferences.removeScreenLock();
appPreferences.removeScreenLockTimeout(); appPreferences.removeScreenLockTimeout();
screenLockTimeoutChoicePreference.setValue("0");
((Checkable) screenLockSwitchPreference.findViewById(R.id.mp_checkable)).setChecked(false); ((Checkable) screenLockSwitchPreference.findViewById(R.id.mp_checkable)).setChecked(false);
screenLockSwitchPreference.setAlpha(0.38f); screenLockSwitchPreference.setAlpha(0.38f);
screenLockTimeoutChoicePreference.setAlpha(0.38f); screenLockTimeoutChoicePreference.setAlpha(0.38f);