Merge "Avoid visibility change on navBar view if null" into rvc-dev

This commit is contained in:
Vinit Nayak
2020-04-07 01:25:23 +00:00
committed by Android (Google) Code Review

View File

@@ -625,8 +625,10 @@ public class NavigationBarFragment extends LifecycleFragment implements Callback
// mOrientedHandle is initialized lazily // mOrientedHandle is initialized lazily
mOrientationHandle.setVisibility(View.GONE); mOrientationHandle.setVisibility(View.GONE);
} }
if (mNavigationBarView != null) {
mNavigationBarView.setVisibility(View.VISIBLE); mNavigationBarView.setVisibility(View.VISIBLE);
} }
}
private int deltaRotation(int oldRotation, int newRotation) { private int deltaRotation(int oldRotation, int newRotation) {
int delta = newRotation - oldRotation; int delta = newRotation - oldRotation;