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:
1 parent
ce67572ec8
commit
c8b09709ff
7 files changed
+67
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user