Merge "Make extra navigation bar count towards non decor frame (3/3)" into tm-qpr-dev am: 861c268d6b am: 14c619fdc7

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

Change-Id: Icbbe44eabb55dd5efb32f056fd4847378aa8468f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Yunfan Chen
2022-09-15 06:33:53 +00:00
committed by Automerger Merge Worker

View File

@@ -2110,12 +2110,10 @@ public class DisplayPolicy {
}
}
// TODO (b/235842600): Use public type once we can treat task bar as navigation bar.
static final int[] INTERNAL_DECOR_TYPES;
static {
final ArraySet<Integer> decorTypes = InsetsState.toInternalType(
Type.displayCutout() | Type.navigationBars());
decorTypes.remove(ITYPE_EXTRA_NAVIGATION_BAR);
INTERNAL_DECOR_TYPES = new int[decorTypes.size()];
for (int i = 0; i < INTERNAL_DECOR_TYPES.length; i++) {
INTERNAL_DECOR_TYPES[i] = decorTypes.valueAt(i);
@@ -2148,7 +2146,6 @@ public class DisplayPolicy {
}
}
// TODO (b/235842600): Remove this method once we can treat task bar as navigation bar.
private static Insets calculateDecorInsetsWithInternalTypes(InsetsState state) {
final Rect frame = state.getDisplayFrame();
Insets insets = Insets.NONE;