图标 #168
This commit is contained in:
2 files changed
+10
-14
No files matched your search
@@ -45,7 +45,7 @@
|
|||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.main.Launcher1"
|
android:name=".ui.main.Launcher0"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:icon="@mipmap/launcher0">
|
android:icon="@mipmap/launcher0">
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
<!-- 图标1 -->
|
<!-- 图标1 -->
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.main.Launcher2"
|
android:name=".ui.main.Launcher1"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:icon="@mipmap/launcher1">
|
android:icon="@mipmap/launcher1">
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
<!-- 图标2 -->
|
<!-- 图标2 -->
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.main.Launcher3"
|
android:name=".ui.main.Launcher2"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:icon="@mipmap/launcher2">
|
android:icon="@mipmap/launcher2">
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
<!-- 图标3 -->
|
<!-- 图标3 -->
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.main.Launcher4"
|
android:name=".ui.main.Launcher3"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:icon="@mipmap/launcher3">
|
android:icon="@mipmap/launcher3">
|
||||||
@@ -89,7 +89,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
<!-- 图标4 -->
|
<!-- 图标4 -->
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.main.Launcher5"
|
android:name=".ui.main.Launcher4"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:icon="@mipmap/launcher4">
|
android:icon="@mipmap/launcher4">
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
<!-- 图标5 -->
|
<!-- 图标5 -->
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.main.Launcher6"
|
android:name=".ui.main.Launcher5"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:icon="@mipmap/launcher5">
|
android:icon="@mipmap/launcher5">
|
||||||
@@ -111,7 +111,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
<!-- 图标6 -->
|
<!-- 图标6 -->
|
||||||
<activity
|
<activity
|
||||||
android:name=".ui.main.Launcher7"
|
android:name=".ui.main.Launcher6"
|
||||||
android:enabled="false"
|
android:enabled="false"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:icon="@mipmap/launcher6">
|
android:icon="@mipmap/launcher6">
|
||||||
|
|||||||
@@ -2,19 +2,15 @@ package io.legado.app.help
|
|||||||
|
|
||||||
import android.content.ComponentName
|
import android.content.ComponentName
|
||||||
import android.content.pm.PackageManager
|
import android.content.pm.PackageManager
|
||||||
import android.os.Build
|
import io.legado.app.ui.main.Launcher0
|
||||||
import io.legado.app.R
|
|
||||||
import io.legado.app.ui.main.Launcher1
|
import io.legado.app.ui.main.Launcher1
|
||||||
import io.legado.app.ui.main.Launcher2
|
import io.legado.app.ui.main.Launcher2
|
||||||
import io.legado.app.ui.main.Launcher3
|
import io.legado.app.ui.main.Launcher3
|
||||||
import io.legado.app.ui.main.Launcher4
|
import io.legado.app.ui.main.Launcher4
|
||||||
import io.legado.app.ui.main.Launcher5
|
import io.legado.app.ui.main.Launcher5
|
||||||
import io.legado.app.ui.main.Launcher6
|
import io.legado.app.ui.main.Launcher6
|
||||||
import io.legado.app.ui.main.Launcher7
|
|
||||||
import io.legado.app.ui.main.LauncherW
|
import io.legado.app.ui.main.LauncherW
|
||||||
import io.legado.app.ui.main.MainActivity
|
import io.legado.app.ui.main.MainActivity
|
||||||
import io.legado.app.ui.welcome.WelcomeActivity
|
|
||||||
import io.legado.app.utils.toastOnUi
|
|
||||||
import splitties.init.appCtx
|
import splitties.init.appCtx
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -25,13 +21,13 @@ object LauncherIconHelp {
|
|||||||
private val packageManager: PackageManager = appCtx.packageManager
|
private val packageManager: PackageManager = appCtx.packageManager
|
||||||
private val componentNames = arrayListOf(
|
private val componentNames = arrayListOf(
|
||||||
ComponentName(appCtx, LauncherW::class.java.name),
|
ComponentName(appCtx, LauncherW::class.java.name),
|
||||||
|
ComponentName(appCtx, Launcher0::class.java.name),
|
||||||
ComponentName(appCtx, Launcher1::class.java.name),
|
ComponentName(appCtx, Launcher1::class.java.name),
|
||||||
ComponentName(appCtx, Launcher2::class.java.name),
|
ComponentName(appCtx, Launcher2::class.java.name),
|
||||||
ComponentName(appCtx, Launcher3::class.java.name),
|
ComponentName(appCtx, Launcher3::class.java.name),
|
||||||
ComponentName(appCtx, Launcher4::class.java.name),
|
ComponentName(appCtx, Launcher4::class.java.name),
|
||||||
ComponentName(appCtx, Launcher5::class.java.name),
|
ComponentName(appCtx, Launcher5::class.java.name),
|
||||||
ComponentName(appCtx, Launcher6::class.java.name),
|
ComponentName(appCtx, Launcher6::class.java.name)
|
||||||
ComponentName(appCtx, Launcher7::class.java.name)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
fun changeIcon(icon: String?) {
|
fun changeIcon(icon: String?) {
|
||||||
|
|||||||
Reference in new issue
Block a user