feat: 优化代码

pull/379/head
kunfei 5 years ago
parent 00dee99387
commit 75c0c00960
  1. 14
      app/src/main/AndroidManifest.xml
  2. 3
      app/src/main/java/io/legado/app/ui/welcome/WelcomeActivity.kt
  3. 5
      app/src/main/res/mipmap-anydpi-v26/launcher6.xml
  4. 1
      app/src/main/res/values/array_values.xml
  5. 1
      app/src/main/res/values/arrays.xml

@ -107,6 +107,20 @@
android:resource="@xml/shortcuts" android:resource="@xml/shortcuts"
android:launchMode="singleTask" /> android:launchMode="singleTask" />
</activity> </activity>
<!--图标6-->
<activity
android:name=".ui.welcome.Launcher6"
android:icon="@mipmap/launcher6"
android:enabled="false">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts"
android:launchMode="singleTask" />
</activity>
<!--主界面--> <!--主界面-->
<activity <activity
android:name=".ui.main.MainActivity" android:name=".ui.main.MainActivity"

@ -60,4 +60,5 @@ class Launcher1 : WelcomeActivity()
class Launcher2 : WelcomeActivity() class Launcher2 : WelcomeActivity()
class Launcher3 : WelcomeActivity() class Launcher3 : WelcomeActivity()
class Launcher4 : WelcomeActivity() class Launcher4 : WelcomeActivity()
class Launcher5 : WelcomeActivity() class Launcher5 : WelcomeActivity()
class Launcher6 : WelcomeActivity()

@ -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="@drawable/ic_launcher7_b" />
<foreground android:drawable="@drawable/ic_launcher7" />
</adaptive-icon>

@ -8,6 +8,7 @@
<item>launcher3</item> <item>launcher3</item>
<item>launcher4</item> <item>launcher4</item>
<item>launcher5</item> <item>launcher5</item>
<item>launcher6</item>
</string-array> </string-array>
<string-array name="screen_time_out_value"> <string-array name="screen_time_out_value">

@ -81,6 +81,7 @@
<item>icon3</item> <item>icon3</item>
<item>icon4</item> <item>icon4</item>
<item>icon5</item> <item>icon5</item>
<item>icon6</item>
</string-array> </string-array>
<string-array name="chinese_mode"> <string-array name="chinese_mode">

Loading…
Cancel
Save