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

Commit 2f9883f9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Always show back button when screen pinning, for prototype"

parents 0d4da83e 8a10fb5a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -276,8 +276,10 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav

        @Override
        public void onBackButtonVisibilityChanged(boolean visible) {
            if (!inScreenPinning()) {
                getBackButton().setVisibility(visible ? VISIBLE : GONE);
            }
        }

        @Override
        public void onColorAdaptChanged(boolean enabled) {
@@ -940,6 +942,9 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav
    public void showPinningEnterExitToast(boolean entering) {
        if (entering) {
            mScreenPinningNotify.showPinningStartToast();

            // TODO(b/112934365): remove after prototype finished, only needed to escape from pin
            getBackButton().setVisibility(VISIBLE);
        } else {
            mScreenPinningNotify.showPinningExitToast();
        }