2013-02-11 01:30:51 +00:00
|
|
|
package org.thoughtcrime.securesms;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
|
2013-08-18 01:37:18 +00:00
|
|
|
import org.whispersystems.textsecure.crypto.MasterSecret;
|
2013-02-11 01:30:51 +00:00
|
|
|
|
|
|
|
import com.actionbarsherlock.app.SherlockActivity;
|
|
|
|
|
|
|
|
public class PassphraseRequiredSherlockActivity extends SherlockActivity implements PassphraseRequiredActivity {
|
|
|
|
|
|
|
|
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) {}
|
|
|
|
|
|
|
|
}
|