Skip to content

Commit 7be1fe5

Browse files
author
Leonid Pliushch
committed
icon: add regular png icon for compatibility with some launchers
See termux#991. Adaptive icon will continue to be automatically used if supported.
1 parent 0e94d52 commit 7be1fe5

File tree

16 files changed

+8
-36
lines changed

16 files changed

+8
-36
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<permission android:name="com.termux.permission.RUN_COMMAND"
1212
android:label="@string/run_command_permission_label"
1313
android:description="@string/run_command_permission_description"
14-
android:icon="@drawable/ic_launcher"
14+
android:icon="@mipmap/ic_launcher"
1515
android:protectionLevel="dangerous" />
1616

1717
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
@@ -28,7 +28,8 @@
2828
<application
2929
android:extractNativeLibs="true"
3030
android:allowBackup="false"
31-
android:icon="@drawable/ic_launcher"
31+
android:icon="@mipmap/ic_launcher"
32+
android:roundIcon="@mipmap/ic_launcher_round"
3233
android:banner="@drawable/banner"
3334
android:label="@string/application_name"
3435
android:theme="@style/Theme.Termux"

app/src/main/res/drawable/ic_launcher.xml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@android:color/black"/>
4+
<foreground android:drawable="@drawable/ic_foreground"/>
5+
</adaptive-icon>
1.42 KB
Loading
Loading
1.1 KB
Loading
Loading
1.8 KB
Loading
Loading

0 commit comments

Comments
 (0)