Merge "Avoid visibility change on navBar view if null" into rvc-dev am: 8694188f71

Change-Id: I6006434daf1fea894a8590f7fd21129b0d9ed225
This commit is contained in:
Vinit Nayak
2020-04-07 01:30:26 +00:00
committed by Automerger Merge Worker

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;