mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
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:
@@ -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