Merge "Add quickstep and dispaly rotation to NavBarFragment dump." into rvc-dev am: a5b24a9ae1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11839904 Change-Id: Icb692904b174b0aae81f1b90f4f3b8429a6a52f8
This commit is contained in:
@@ -628,6 +628,12 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback
|
|||||||
resetSecondaryHandle();
|
resetSecondaryHandle();
|
||||||
} else {
|
} else {
|
||||||
int deltaRotation = deltaRotation(mCurrentRotation, mStartingQuickSwitchRotation);
|
int deltaRotation = deltaRotation(mCurrentRotation, mStartingQuickSwitchRotation);
|
||||||
|
if (mStartingQuickSwitchRotation == -1 || deltaRotation == -1) {
|
||||||
|
// Curious if starting quickswitch can change between the if check and our delta
|
||||||
|
Log.d(TAG, "secondary nav delta rotation: " + deltaRotation
|
||||||
|
+ " current: " + mCurrentRotation
|
||||||
|
+ " starting: " + mStartingQuickSwitchRotation);
|
||||||
|
}
|
||||||
int height = 0;
|
int height = 0;
|
||||||
int width = 0;
|
int width = 0;
|
||||||
Rect dispSize = mWindowManager.getCurrentWindowMetrics().getBounds();
|
Rect dispSize = mWindowManager.getCurrentWindowMetrics().getBounds();
|
||||||
@@ -691,6 +697,8 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback
|
|||||||
dumpBarTransitions(pw, "mNavigationBarView", mNavigationBarView.getBarTransitions());
|
dumpBarTransitions(pw, "mNavigationBarView", mNavigationBarView.getBarTransitions());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pw.print(" mStartingQuickSwitchRotation=" + mStartingQuickSwitchRotation);
|
||||||
|
pw.print(" mCurrentRotation=" + mCurrentRotation);
|
||||||
pw.print(" mNavigationBarView=");
|
pw.print(" mNavigationBarView=");
|
||||||
if (mNavigationBarView == null) {
|
if (mNavigationBarView == null) {
|
||||||
pw.println("null");
|
pw.println("null");
|
||||||
|
|||||||
Reference in New Issue
Block a user