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

Commit fe4c8b76 authored by Tiger Huang's avatar Tiger Huang Committed by Android (Google) Code Review
Browse files

Merge "Only return existing types from Type#defaultVisible() or Type#all()" into main

parents 198e7c40 991868b9
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1853,8 +1853,11 @@ public final class WindowInsets {
        @InsetsType
        static final int LAST = SYSTEM_OVERLAYS;
        static final int SIZE = 9;

        @InsetsType
        static final int ALL = ((1 << SIZE) - 1);
        @InsetsType
        static final int DEFAULT_VISIBLE = ~IME;
        static final int DEFAULT_VISIBLE = ALL & ~IME;

        static int indexOf(@InsetsType int type) {
            switch (type) {
@@ -2074,7 +2077,7 @@ public final class WindowInsets {
         */
        @InsetsType
        public static int all() {
            return 0xFFFFFFFF;
            return ALL;
        }

        /**