2013-02-11 01:30:51 +00:00
|
|
|
package org.thoughtcrime.securesms;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
|
2014-11-03 23:16:04 +00:00
|
|
|
import org.thoughtcrime.securesms.crypto.MasterSecret;
|
2013-02-11 01:30:51 +00:00
|
|
|
|
2015-02-08 21:53:12 +00:00
|
|
|
public class PassphraseRequiredActionBarActivity extends BaseActionBarActivity implements PassphraseRequiredActivity {
|
2013-02-11 01:30:51 +00:00
|
|
|
|
|
|
|
private final PassphraseRequiredMixin delegate = new PassphraseRequiredMixin();
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
|
|
super.onCreate(savedInstanceState);
|
2014-06-17 03:32:54 +00:00
|
|
|
delegate.onCreate(this);
|
2013-02-11 01:30:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onResume() {
|
|
|
|
super.onResume();
|
2014-06-17 03:32:54 +00:00
|
|
|
delegate.onResume(this);
|
2013-02-11 01:30:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onPause() {
|
|
|
|
super.onPause();
|
2014-06-17 03:32:54 +00:00
|
|
|
delegate.onPause(this);
|
2013-02-11 01:30:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onDestroy() {
|
|
|
|
super.onDestroy();
|
2014-06-17 03:32:54 +00:00
|
|
|
delegate.onDestroy(this);
|
2013-02-11 01:30:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onMasterSecretCleared() {
|
|
|
|
finish();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onNewMasterSecret(MasterSecret masterSecret) {}
|
|
|
|
}
|