Merge "Skip updating nav bar if it was destroyed" into tm-dev

This commit is contained in:
Winson Chung
2022-02-24 06:23:55 +00:00
committed by Android (Google) Code Review

View File

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