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

Commit b4e08b85 authored by Tiger Huang's avatar Tiger Huang Committed by Automerger Merge Worker
Browse files

Merge "Fix BEHAVIOR_SHOW_BARS_BY_TOUCH" into rvc-qpr-dev am: 484a11d3

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

Change-Id: Icba8e6f07164db973674172ffb45751733036643
parents 3fe9ef5c 484a11d3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1540,7 +1540,7 @@ public class DisplayPolicy {
                            if (mInputConsumer == null) {
                                return;
                            }
                            showNavigationBar();
                            showSystemBars();
                            // Any user activity always causes us to show the
                            // navigation controls, if they had been hidden.
                            // We also clear the low profile and only content
@@ -1575,13 +1575,13 @@ public class DisplayPolicy {
            }
        }

        private void showNavigationBar() {
        private void showSystemBars() {
            final InsetsSourceProvider provider = mDisplayContent.getInsetsStateController()
                    .peekSourceProvider(ITYPE_NAVIGATION_BAR);
            final InsetsControlTarget target =
                    provider != null ? provider.getControlTarget() : null;
            if (target != null) {
                target.showInsets(Type.navigationBars(), false /* fromIme */);
                target.showInsets(Type.systemBars(), false /* fromIme */);
            }
        }
    }