Fix crash when dumping before user unlocks

Bug: 150864182
Bug: 151050221
Change-Id: I29ba2ef66b4359a47f866d02306498537c45236e
This commit is contained in:
Tony Wickham
2020-03-09 13:20:04 -07:00
parent 3f20390b0e
commit 7759c43bf2
2 changed files with 4 additions and 1 deletions
@@ -760,7 +760,9 @@ public class TouchInteractionService extends Service implements PluginListener<O
} else {
// Dump everything
FeatureFlags.dump(pw);
PluginManagerWrapper.INSTANCE.get(getBaseContext()).dump(pw);
if (mDeviceState.isUserUnlocked()) {
PluginManagerWrapper.INSTANCE.get(getBaseContext()).dump(pw);
}
mDeviceState.dump(pw);
if (mOverviewComponentObserver != null) {
mOverviewComponentObserver.dump(pw);
@@ -518,6 +518,7 @@ public class RecentsAnimationDeviceState implements
+ QuickStepContract.isAssistantGestureDisabled(mSystemUiStateFlags));
pw.println(" currentActiveRotation=" + getCurrentActiveRotation());
pw.println(" displayRotation=" + getDisplayRotation());
pw.println(" isUserUnlocked=" + mIsUserUnlocked);
mOrientationTouchTransformer.dump(pw);
}
}