Tracing for another "Launcher didn't initialize" failure

This simply restored logging used for one of earlier investigations

Bug: 148313079
Change-Id: Idafed13208dc5610d577986fc487d1d44bc0ef5e
This commit is contained in:
vadimt
2020-01-27 17:44:44 -08:00
parent ce67572ec8
commit c8b09709ff
7 changed files with 67 additions and 1 deletions

View File

@@ -45,7 +45,13 @@ public final class ActivityTracker<T extends BaseActivity> implements Runnable {
}
public void onActivityDestroyed(T activity) {
if (TestProtocol.sDebugTracing) {
Log.d(TestProtocol.LAUNCHER_DIDNT_INITIALIZE, "onActivityDestroyed");
}
if (mCurrentActivity.get() == activity) {
if (TestProtocol.sDebugTracing) {
Log.d(TestProtocol.LAUNCHER_DIDNT_INITIALIZE, "onActivityDestroyed: clear");
}
mCurrentActivity.clear();
}
}
@@ -110,6 +116,10 @@ public final class ActivityTracker<T extends BaseActivity> implements Runnable {
}
public boolean handleCreate(T activity) {
if (TestProtocol.sDebugTracing) {
Log.d(TestProtocol.LAUNCHER_DIDNT_INITIALIZE,
"ActivityTracker.handleCreate " + mCurrentActivity.get() + " => " + activity);
}
mCurrentActivity = new WeakReference<>(activity);
return handleIntent(activity, activity.getIntent(), false, false);
}