Merge "Skip updating nav bar if it was destroyed" into tm-dev am: 72d2d550e9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16946073

Change-Id: I79c24973997f45be744ac896989776262b49070d
This commit is contained in:
Winson Chung
2022-02-24 06:29:59 +00:00
committed by Automerger Merge Worker

View File

@@ -440,7 +440,9 @@ public class NavigationBar implements View.OnAttachStateChangeListener,
mHomeButtonLongPressDurationMs = Optional.of( mHomeButtonLongPressDurationMs = Optional.of(
properties.getLong(HOME_BUTTON_LONG_PRESS_DURATION_MS, 0) properties.getLong(HOME_BUTTON_LONG_PRESS_DURATION_MS, 0)
).filter(duration -> duration != 0); ).filter(duration -> duration != 0);
reconfigureHomeLongClick(); if (mNavigationBarView != null) {
reconfigureHomeLongClick();
}
} }
} }
}; };