Show the down back instead of the left back when the IME is up.
Change-Id: Ief99935c4341b492d985c5f705b41f75e6b4d291
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
index 1fe2aea..3cae088 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
@@ -102,7 +102,7 @@
NotificationIconArea mNotificationIconArea;
View mNavigationArea;
- View mBackButton;
+ ImageView mBackButton;
View mHomeButton;
View mMenuButton;
View mRecentButton;
@@ -287,7 +287,7 @@
// 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 @@
}
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() {