Fixing while navication bar in all-apps in 3-button mode.
Launcher was not accounting for all-apps-nav-bar-scrim when computing sysui-flags Bug: 194486821 Test: Verified on device Change-Id: I692977fba5999bbab9737bac4b27c15c2912e6af
This commit is contained in:
@@ -520,13 +520,20 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
|
||||
/**
|
||||
* Returns a padding in case a scrim is shown on the bottom of the view and a padding is needed.
|
||||
*/
|
||||
protected int getNavBarScrimHeight(WindowInsets insets) {
|
||||
protected int computeNavBarScrimHeight(WindowInsets insets) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current height of nav bar scrim
|
||||
*/
|
||||
public int getNavBarScrimHeight() {
|
||||
return mNavBarScrimHeight;
|
||||
}
|
||||
|
||||
@Override
|
||||
public WindowInsets dispatchApplyWindowInsets(WindowInsets insets) {
|
||||
mNavBarScrimHeight = getNavBarScrimHeight(insets);
|
||||
mNavBarScrimHeight = computeNavBarScrimHeight(insets);
|
||||
applyAdapterSideAndBottomPaddings(mActivityContext.getDeviceProfile());
|
||||
return super.dispatchApplyWindowInsets(insets);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user