Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5f7ed27 authored by Heemin Seog's avatar Heemin Seog
Browse files

DO NOT MERGE Only check internal inset types if they exist

Bug: 169205727
Test: atest WindowInsetsControllerTests (sdk_gphone_x86 && gcar_emu_x86)
Change-Id: I4d4a21ac3fc1b17d848c33917efae1f80571a37a
parent 19893112
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -3400,9 +3400,12 @@ public class DisplayPolicy {
                            ? Type.navigationBars() : 0)
                    | (requestedState.getSourceOrDefaultVisibility(ITYPE_STATUS_BAR)
                            ? Type.statusBars() : 0)
                    | (requestedState.getSourceOrDefaultVisibility(ITYPE_EXTRA_NAVIGATION_BAR)
                    | (mExtraNavBarAlt != null
                            && requestedState.getSourceOrDefaultVisibility(
                                    ITYPE_EXTRA_NAVIGATION_BAR)
                            ? Type.navigationBars() : 0)
                    | (requestedState.getSourceOrDefaultVisibility(ITYPE_CLIMATE_BAR)
                    | (mClimateBarAlt != null
                            && requestedState.getSourceOrDefaultVisibility(ITYPE_CLIMATE_BAR)
                            ? Type.statusBars() : 0);

            if (swipeTarget == mNavigationBar