Move icons to mipmap.
Change-Id: If3bd32658300cb028411d1aa7a3f56d8c1d234eb
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
<uses-permission android:name="android.permission.MOVE_PACKAGE" />
|
||||
|
||||
<application android:label="@string/settings_label"
|
||||
android:icon="@drawable/ic_launcher_settings"
|
||||
android:icon="@mipmap/ic_launcher_settings"
|
||||
android:taskAffinity=""
|
||||
android:hardwareAccelerated="true">
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<!-- ImageView
|
||||
android:src="@drawable/ic_launcher_settings"
|
||||
android:src="@mipmap/ic_launcher_settings"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
@@ -38,7 +38,7 @@ public class CreateShortcut extends LauncherActivity {
|
||||
shortcutIntent.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
|
||||
Intent intent = new Intent();
|
||||
intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,
|
||||
Intent.ShortcutIconResource.fromContext(this, R.drawable.ic_launcher_settings));
|
||||
Intent.ShortcutIconResource.fromContext(this, R.mipmap.ic_launcher_settings));
|
||||
intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);
|
||||
intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, itemForPosition(position).label);
|
||||
setResult(RESULT_OK, intent);
|
||||
|
Reference in New Issue
Block a user