mipmap launcher icons

pull/324/merge
Alex Baker 9 years ago
parent 3b1879a776
commit fccdba1197

@ -94,7 +94,7 @@
android:required="false" />
<application
android:icon="@drawable/icon"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Tasks"
android:allowBackup="true"

@ -5,7 +5,6 @@
*/
package com.todoroo.astrid.activity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
@ -66,7 +65,7 @@ public class FilterShortcutActivity extends InjectingListActivity {
}
Intent shortcutIntent = ShortcutActivity.createIntent(context, filter);
Bitmap bitmap = superImposeListIcon(FilterShortcutActivity.this);
Bitmap bitmap = ((BitmapDrawable) getResources().getDrawable(R.mipmap.ic_launcher)).getBitmap();
Intent intent = new Intent();
intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);
intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, filter.listingTitle);
@ -77,10 +76,6 @@ public class FilterShortcutActivity extends InjectingListActivity {
}
};
private static Bitmap superImposeListIcon(Activity activity) {
return ((BitmapDrawable)activity.getResources().getDrawable(R.drawable.icon)).getBitmap();
}
@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

@ -19,7 +19,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="5dip"
android:src="@drawable/icon"
android:src="@mipmap/ic_launcher"
android:scaleType="fitCenter"
android:layout_alignParentLeft="true"/>

@ -14,7 +14,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:clickable="true"
android:drawableTop="@drawable/icon"
android:drawableTop="@mipmap/ic_launcher"
android:gravity="center"
android:textColor="?attr/asTextColor"
android:text="@string/TLA_no_items" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Loading…
Cancel
Save