Skip to content
Snippets Groups Projects
Commit 0d270edb authored by Nick's avatar Nick :v: Committed by Dhina17
Browse files

NavigationBar: Fix NPE in NavigationBar


Change-Id: I4c1845775ca5ed39e53eaabb10ac13126628dc68
Signed-off-by: default avatarMohammad Hasan Keramat J <ikeramat@protonmail.com>
parent 60758ef3
No related branches found
No related tags found
No related merge requests found
......@@ -1968,6 +1968,7 @@ public class NavigationBar extends ViewController<NavigationBarView> implements
private void onBoundsChange() {
// give wm some time to change fg app
mHandler.postDelayed(() -> {
if (mView == null || !mView.isAttachedToWindow()) return;
mWindowManager.updateViewLayout(mFrame, getBarLayoutParams(mContext.getResources()
.getConfiguration().windowConfiguration.getRotation()));
mRegionSamplingHelper.updateSamplingRect();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment