OSDN Git Service

Updating wallpaper picker icon to higher res
authorMichael Jurka <mikejurka@google.com>
Tue, 13 Nov 2012 02:07:02 +0000 (18:07 -0800)
committerMichael Jurka <mikejurka@google.com>
Tue, 13 Nov 2012 23:55:50 +0000 (15:55 -0800)
Bug: 7400295
Change-Id: I2c7625ee1ce09ded57d884c229f155ebcf39be07

12 files changed:
AndroidManifest.xml
res/drawable-hdpi/ic_launcher_wallpaper.png [deleted file]
res/drawable-mdpi/ic_launcher_wallpaper.png [deleted file]
res/drawable-xhdpi/ic_launcher_wallpaper.png [deleted file]
res/mipmap-hdpi/ic_launcher_home.png [moved from res/drawable-hdpi/ic_launcher_home.png with 100% similarity]
res/mipmap-hdpi/ic_launcher_wallpaper.png [new file with mode: 0644]
res/mipmap-mdpi/ic_launcher_home.png [moved from res/drawable-mdpi/ic_launcher_home.png with 100% similarity]
res/mipmap-mdpi/ic_launcher_wallpaper.png [new file with mode: 0644]
res/mipmap-xhdpi/ic_launcher_home.png [moved from res/drawable-xhdpi/ic_launcher_home.png with 100% similarity]
res/mipmap-xhdpi/ic_launcher_wallpaper.png [new file with mode: 0644]
res/mipmap-xxhdpi/ic_launcher_wallpaper.png [new file with mode: 0644]
src/com/android/launcher2/AddAdapter.java

index adb6ef3..c14b63e 100644 (file)
@@ -64,7 +64,7 @@
     <application
         android:name="com.android.launcher2.LauncherApplication"
         android:label="@string/application_name"
-        android:icon="@drawable/ic_launcher_home"
+        android:icon="@mipmap/ic_launcher_home"
         android:hardwareAccelerated="true"
         android:largeHeap="@bool/config_largeHeap"
         android:supportsRtl="true">
@@ -88,7 +88,7 @@
             android:name="com.android.launcher2.WallpaperChooser"
             android:theme="@style/Theme.WallpaperPicker"
             android:label="@string/pick_wallpaper"
-            android:icon="@drawable/ic_launcher_wallpaper"
+            android:icon="@mipmap/ic_launcher_wallpaper"
             android:finishOnCloseSystemDialogs="true"
             android:process=":wallpaper_chooser">
             <intent-filter>
diff --git a/res/drawable-hdpi/ic_launcher_wallpaper.png b/res/drawable-hdpi/ic_launcher_wallpaper.png
deleted file mode 100644 (file)
index 5c8ee24..0000000
Binary files a/res/drawable-hdpi/ic_launcher_wallpaper.png and /dev/null differ
diff --git a/res/drawable-mdpi/ic_launcher_wallpaper.png b/res/drawable-mdpi/ic_launcher_wallpaper.png
deleted file mode 100644 (file)
index d2803b1..0000000
Binary files a/res/drawable-mdpi/ic_launcher_wallpaper.png and /dev/null differ
diff --git a/res/drawable-xhdpi/ic_launcher_wallpaper.png b/res/drawable-xhdpi/ic_launcher_wallpaper.png
deleted file mode 100644 (file)
index 9b0b7b2..0000000
Binary files a/res/drawable-xhdpi/ic_launcher_wallpaper.png and /dev/null differ
diff --git a/res/mipmap-hdpi/ic_launcher_wallpaper.png b/res/mipmap-hdpi/ic_launcher_wallpaper.png
new file mode 100644 (file)
index 0000000..affee85
Binary files /dev/null and b/res/mipmap-hdpi/ic_launcher_wallpaper.png differ
diff --git a/res/mipmap-mdpi/ic_launcher_wallpaper.png b/res/mipmap-mdpi/ic_launcher_wallpaper.png
new file mode 100644 (file)
index 0000000..cb4443b
Binary files /dev/null and b/res/mipmap-mdpi/ic_launcher_wallpaper.png differ
diff --git a/res/mipmap-xhdpi/ic_launcher_wallpaper.png b/res/mipmap-xhdpi/ic_launcher_wallpaper.png
new file mode 100644 (file)
index 0000000..60f8dce
Binary files /dev/null and b/res/mipmap-xhdpi/ic_launcher_wallpaper.png differ
diff --git a/res/mipmap-xxhdpi/ic_launcher_wallpaper.png b/res/mipmap-xxhdpi/ic_launcher_wallpaper.png
new file mode 100644 (file)
index 0000000..023fb58
Binary files /dev/null and b/res/mipmap-xxhdpi/ic_launcher_wallpaper.png differ
index c2a424b..c0bb17b 100644 (file)
@@ -71,7 +71,7 @@ public class AddAdapter extends BaseAdapter {
         Resources res = launcher.getResources();
 
         mItems.add(new ListItem(res, R.string.group_wallpapers,
-                R.drawable.ic_launcher_wallpaper, ITEM_WALLPAPER));
+                R.mipmap.ic_launcher_wallpaper, ITEM_WALLPAPER));
     }
 
     public View getView(int position, View convertView, ViewGroup parent) {