Adaptive icon

This commit is contained in:
Matéo Duparc 2023-02-05 14:43:30 +01:00
parent a726f7a7d0
commit 6e500c23e5
Signed by untrusted user: hardcoresushi
GPG Key ID: AFE384344A45E13A
17 changed files with 13 additions and 4 deletions

@ -1 +1 @@
Subproject commit ba5df7390b68fba3dba53d2231e2fb38d1c7632c Subproject commit 43de737624ceeb1c41012d2ea4f0d5dcba8a19e5

View File

@ -26,7 +26,7 @@
<application <application
android:allowBackup="false" android:allowBackup="false"
android:icon="@mipmap/icon_launcher" android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
android:requestLegacyExternalStorage="true" android:requestLegacyExternalStorage="true"
android:supportsRtl="true" android:supportsRtl="true"

View File

@ -64,7 +64,7 @@ class FileOperationService : Service() {
val notificationBuilder = NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID) val notificationBuilder = NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)
notificationBuilder notificationBuilder
.setContentTitle(getString(message)) .setContentTitle(getString(message))
.setSmallIcon(R.mipmap.icon_launcher) .setSmallIcon(R.drawable.ic_notification)
.setOngoing(true) .setOngoing(true)
.addAction(NotificationCompat.Action( .addAction(NotificationCompat.Action(
R.drawable.icon_close, R.drawable.icon_close,

Binary file not shown.

After

Width:  |  Height:  |  Size: 638 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">@color/primary</color>
</resources>

View File

@ -5,7 +5,7 @@ buildscript {
mavenCentral() mavenCentral()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:7.4.0' classpath 'com.android.tools.build:gradle:7.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
} }
} }