summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOren Blasberg <orenb@google.com>2017-06-28 11:07:01 -0700
committerOren Blasberg <orenb@google.com>2017-06-28 11:25:04 -0700
commit21f3494cac8e7c58f49dfa9980e7e1edfaf834e8 (patch)
tree7e6ee41606d245101a3acf5ba2631a55a1ac3aea /src
parent802e925f0594c936c0b9790795a9eceab300529c (diff)
downloadandroid_packages_wallpapers_LivePicker-21f3494cac8e7c58f49dfa9980e7e1edfaf834e8.tar.gz
android_packages_wallpapers_LivePicker-21f3494cac8e7c58f49dfa9980e7e1edfaf834e8.tar.bz2
android_packages_wallpapers_LivePicker-21f3494cac8e7c58f49dfa9980e7e1edfaf834e8.zip
Update LivePicker "back arrow" vector asset.
New arrow vector is slightly rounded in accordance with new spec. Test: Manually verified the new arrow icon is present and looks good both in LTR and RTL. Bug: 63099233 Change-Id: If8d06dcb5688aecffbfd9f4feb65bffb8ff9e539
Diffstat (limited to 'src')
-rw-r--r--src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
index a341cc4..baaa13c 100644
--- a/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
+++ b/src/com/android/wallpaper/livepicker/LiveWallpaperPreview.java
@@ -30,6 +30,7 @@ import android.content.ServiceConnection;
import android.content.pm.PackageManager;
import android.content.res.Resources.NotFoundException;
import android.graphics.Rect;
+import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.os.IBinder;
@@ -119,10 +120,15 @@ public class LiveWallpaperPreview extends Activity {
mWallpaperIntent = new Intent(WallpaperService.SERVICE_INTERFACE)
.setClassName(info.getPackageName(), info.getServiceName());
- setActionBar((Toolbar) findViewById(R.id.toolbar));
+ Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
+ setActionBar(toolbar);
getActionBar().setDisplayHomeAsUpEnabled(true);
getActionBar().setDisplayShowTitleEnabled(false);
+ Drawable backArrow = getResources().getDrawable(R.drawable.ic_arrow_back_white_24dp);
+ backArrow.setAutoMirrored(true);
+ toolbar.setNavigationIcon(backArrow);
+
mWallpaperManager = WallpaperManager.getInstance(this);
mWallpaperConnection = new WallpaperConnection(mWallpaperIntent);