public void onPause() { prefs.unregisterOnSharedPreferenceChangeListener(this); super.onPause(); if (!app.getRecorderCtx().isRunning() && !exit && !preferences) app.notificationShow(); preferences = false; }
public void onResume() { prefs.registerOnSharedPreferenceChangeListener(this); super.onResume(); if (!app.getRecorderCtx().isRunning()) app.getNfyHelper().hide(); }