Matching event [un]registering, call super at the end of onPause/onDestroy

Event unregistered in onDestroy() should be registered in onCreate() to
avoid being registered multiple times.
This commit is contained in:
tonymanou
2017-01-12 00:51:44 +01:00
committed by topjohnwu
parent ae74d54451
commit 4dbacd79ae
2 changed files with 4 additions and 4 deletions

View File

@@ -131,8 +131,8 @@ public class SettingsActivity extends AppCompatActivity {
@Override
public void onDestroy() {
super.onDestroy();
prefs.unregisterOnSharedPreferenceChangeListener(this);
super.onDestroy();
}
@Override