extra logging for activity lifecycle

to help debug #2971
Closes #4342
// FREEBIE
This commit is contained in:
Jake McGinty 2015-11-02 14:03:38 -08:00 committed by Moxie Marlinspike
parent 59f2446a2b
commit d6a061d50f
2 changed files with 5 additions and 0 deletions

View File

@ -208,6 +208,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
@Override
protected void onCreate(Bundle state, @NonNull MasterSecret masterSecret) {
Log.w(TAG, "onCreate()");
this.masterSecret = masterSecret;
supportRequestWindowFeature(WindowCompat.FEATURE_ACTION_BAR_OVERLAY);

View File

@ -38,6 +38,7 @@ public abstract class PassphraseRequiredActionBarActivity extends BaseActionBarA
@Override
protected final void onCreate(Bundle savedInstanceState) {
Log.w(TAG, "onCreate(" + savedInstanceState + ")");
onPreCreate();
final MasterSecret masterSecret = KeyCachingService.getMasterSecret(this);
routeApplicationState(masterSecret);
@ -53,6 +54,7 @@ public abstract class PassphraseRequiredActionBarActivity extends BaseActionBarA
@Override
protected void onResume() {
Log.w(TAG, "onResume()");
super.onResume();
initializeScreenshotSecurity();
KeyCachingService.registerPassphraseActivityStarted(this);
@ -62,6 +64,7 @@ public abstract class PassphraseRequiredActionBarActivity extends BaseActionBarA
@Override
protected void onPause() {
Log.w(TAG, "onPause()");
super.onPause();
KeyCachingService.registerPassphraseActivityStopped(this);
MessageRetrievalService.registerActivityStopped(this);
@ -70,6 +73,7 @@ public abstract class PassphraseRequiredActionBarActivity extends BaseActionBarA
@Override
protected void onDestroy() {
Log.w(TAG, "onDestroy()");
super.onDestroy();
removeClearKeyReceiver(this);
}