Merge pull request #10533 from t895/adaptive-icon
Android: Create adaptive icon and refactor old icon usage
|
@ -32,7 +32,7 @@
|
|||
<application
|
||||
android:name=".DolphinApplication"
|
||||
android:label="@string/app_name"
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:requestLegacyExternalStorage="true"
|
||||
android:preserveLegacyExternalStorage="true"
|
||||
android:allowBackup="true"
|
||||
|
|
|
@ -129,7 +129,7 @@ public class SyncChannelJobService extends JobService
|
|||
builder.build().toContentValues());
|
||||
|
||||
channelId = ContentUris.parseId(channelUrl);
|
||||
Bitmap bitmap = TvUtil.convertToBitmap(context, R.drawable.ic_launcher);
|
||||
Bitmap bitmap = TvUtil.convertToBitmap(context, R.drawable.ic_dolphin);
|
||||
ChannelLogoUtils.storeChannelLogo(context, channelId, bitmap);
|
||||
|
||||
return channelId;
|
||||
|
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
|
@ -25,7 +25,7 @@
|
|||
android:id="@+id/badge"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_launcher"/>
|
||||
android:src="@drawable/ic_dolphin"/>
|
||||
|
||||
</RelativeLayout>
|
||||
</androidx.leanback.widget.TitleView>
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 7.2 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 11 KiB |
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ic_launcher_background">#FFFFFF</color>
|
||||
</resources>
|