Add the rest of the nav bar assets for quick step (1/2)
This includes back, ime arrow, home button for most densities in rtl and landscape. Change-Id: Id9403f6a60b62bbc911fade86e71d24bfd26f4d2 Fixes: 73365845 Test: rotate device, turn on rtl language
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 681 B |
|
After Width: | Height: | Size: 1008 B |
|
After Width: | Height: | Size: 695 B |
|
After Width: | Height: | Size: 895 B |
|
After Width: | Height: | Size: 637 B |
|
After Width: | Height: | Size: 875 B |
|
After Width: | Height: | Size: 649 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 762 B |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1010 B |
|
After Width: | Height: | Size: 710 B |
|
After Width: | Height: | Size: 809 B |
|
After Width: | Height: | Size: 524 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 904 B |
|
After Width: | Height: | Size: 800 B |
|
After Width: | Height: | Size: 524 B |
|
After Width: | Height: | Size: 810 B |
|
After Width: | Height: | Size: 522 B |
|
After Width: | Height: | Size: 744 B |
|
After Width: | Height: | Size: 502 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 870 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 879 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 752 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
@@ -403,14 +403,18 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav
|
||||
}
|
||||
|
||||
private void updateIcons(Context ctx, Configuration oldConfig, Configuration newConfig) {
|
||||
final boolean quickStepEnabled = isQuickStepSwipeUpEnabled() || isQuickScrubEnabled();
|
||||
if (oldConfig.orientation != newConfig.orientation
|
||||
|| oldConfig.densityDpi != newConfig.densityDpi) {
|
||||
mDockedIcon = getDrawable(ctx,
|
||||
R.drawable.ic_sysbar_docked, R.drawable.ic_sysbar_docked_dark);
|
||||
mHomeDefaultIcon = quickStepEnabled
|
||||
? getDrawable(ctx, R.drawable.ic_sysbar_home_quick_step,
|
||||
R.drawable.ic_sysbar_home_quick_step_dark)
|
||||
: getDrawable(ctx, R.drawable.ic_sysbar_home, R.drawable.ic_sysbar_home_dark);
|
||||
}
|
||||
if (oldConfig.densityDpi != newConfig.densityDpi
|
||||
|| oldConfig.getLayoutDirection() != newConfig.getLayoutDirection()) {
|
||||
final boolean quickStepEnabled = isQuickStepSwipeUpEnabled() || isQuickScrubEnabled();
|
||||
mBackIcon = quickStepEnabled
|
||||
? getDrawable(ctx, R.drawable.ic_sysbar_back_quick_step,
|
||||
R.drawable.ic_sysbar_back_quick_step_dark)
|
||||
@@ -422,11 +426,6 @@ public class NavigationBarView extends FrameLayout implements PluginListener<Nav
|
||||
: getDrawable(ctx, R.drawable.ic_sysbar_back_ime,
|
||||
R.drawable.ic_sysbar_back_ime_dark);
|
||||
mBackAltLandIcon = mBackAltIcon;
|
||||
|
||||
mHomeDefaultIcon = quickStepEnabled
|
||||
? getDrawable(ctx, R.drawable.ic_sysbar_home_quick_step,
|
||||
R.drawable.ic_sysbar_home_quick_step_dark)
|
||||
: getDrawable(ctx, R.drawable.ic_sysbar_home, R.drawable.ic_sysbar_home_dark);
|
||||
mRecentIcon = getDrawable(ctx,
|
||||
R.drawable.ic_sysbar_recent, R.drawable.ic_sysbar_recent_dark);
|
||||
mMenuIcon = getDrawable(ctx, R.drawable.ic_sysbar_menu, R.drawable.ic_sysbar_menu_dark);
|
||||
|
||||