mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-28 20:45:17 +00:00
5ce6dc954a
Fixes #1402 // FREEBIE
49 lines
998 B
Java
49 lines
998 B
Java
package org.thoughtcrime.securesms;
|
|
|
|
import android.os.Bundle;
|
|
|
|
import org.whispersystems.textsecure.crypto.MasterSecret;
|
|
|
|
import com.actionbarsherlock.app.SherlockPreferenceActivity;
|
|
|
|
public abstract class PassphraseRequiredSherlockPreferenceActivity
|
|
extends SherlockPreferenceActivity
|
|
implements PassphraseRequiredActivity
|
|
{
|
|
|
|
private final PassphraseRequiredMixin delegate = new PassphraseRequiredMixin();
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
delegate.onCreate(this);
|
|
}
|
|
|
|
@Override
|
|
protected void onResume() {
|
|
super.onResume();
|
|
delegate.onResume(this);
|
|
}
|
|
|
|
@Override
|
|
protected void onPause() {
|
|
super.onPause();
|
|
delegate.onPause(this);
|
|
}
|
|
|
|
@Override
|
|
protected void onDestroy() {
|
|
super.onDestroy();
|
|
delegate.onDestroy(this);
|
|
}
|
|
|
|
@Override
|
|
public void onMasterSecretCleared() {
|
|
finish();
|
|
}
|
|
|
|
@Override
|
|
public void onNewMasterSecret(MasterSecret masterSecret) {}
|
|
|
|
}
|