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

Commit 536c58fb authored by Joe Onorato's avatar Joe Onorato
Browse files

Show the down back instead of the left back when the IME is up.

Change-Id: Ief99935c4341b492d985c5f705b41f75e6b4d291
parent 5e759460
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_pressed="true" android:drawable="@drawable/ic_sysbar_back_ime_pressed" />
    <item android:drawable="@drawable/ic_sysbar_back_ime_default" />
</selector>
+4 −2
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ public class TabletStatusBar extends StatusBar {
    NotificationIconArea mNotificationIconArea;
    View mNavigationArea;

    View mBackButton;
    ImageView mBackButton;
    View mHomeButton;
    View mMenuButton;
    View mRecentButton;
@@ -287,7 +287,7 @@ public class TabletStatusBar extends StatusBar {

        // The navigation buttons
        mNavigationArea = sb.findViewById(R.id.navigationArea);
        mBackButton = mNavigationArea.findViewById(R.id.back);
        mBackButton = (ImageView)mNavigationArea.findViewById(R.id.back);
        mHomeButton = mNavigationArea.findViewById(R.id.home);
        mMenuButton = mNavigationArea.findViewById(R.id.menu);
        mRecentButton = mNavigationArea.findViewById(R.id.recent_apps);
@@ -657,6 +657,8 @@ public class TabletStatusBar extends StatusBar {
        }
        mInputMethodSwitchButton.setIMEButtonVisible(token, visible);
        mInputMethodShortcutButton.setIMEButtonVisible(token, visible);
        mBackButton.setImageResource(
                visible ? R.drawable.ic_sysbar_back_ime : R.drawable.ic_sysbar_back);
    }

    private boolean isImmersive() {