feat: 优化代码

pull/97/head
kunfei 5 years ago
parent 9c32a24aa7
commit c99314a838
  1. 4
      app/src/main/AndroidManifest.xml

@ -27,6 +27,7 @@
android:theme="@style/AppTheme.Light" android:theme="@style/AppTheme.Light"
android:requestLegacyExternalStorage="false" android:requestLegacyExternalStorage="false"
tools:ignore="AllowBackup,GoogleAppIndexingWarning,UnusedAttribute"> tools:ignore="AllowBackup,GoogleAppIndexingWarning,UnusedAttribute">
<!--主入口-->
<activity android:name=".ui.welcome.WelcomeActivity"> <activity android:name=".ui.welcome.WelcomeActivity">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
@ -37,6 +38,7 @@
android:resource="@xml/shortcuts" android:resource="@xml/shortcuts"
android:launchMode="singleTask" /> android:launchMode="singleTask" />
</activity> </activity>
<!--图标1-->
<activity <activity
android:name=".ui.welcome.Icon1Activity" android:name=".ui.welcome.Icon1Activity"
android:enabled="false"> android:enabled="false">
@ -49,10 +51,12 @@
android:resource="@xml/shortcuts" android:resource="@xml/shortcuts"
android:launchMode="singleTask" /> android:launchMode="singleTask" />
</activity> </activity>
<!--主界面-->
<activity <activity
android:name=".ui.main.MainActivity" android:name=".ui.main.MainActivity"
android:launchMode="singleTask" android:launchMode="singleTask"
android:alwaysRetainTaskState="true" /> android:alwaysRetainTaskState="true" />
<!--阅读界面-->
<activity <activity
android:name=".ui.book.read.ReadBookActivity" android:name=".ui.book.read.ReadBookActivity"
android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout" android:configChanges="locale|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout"

Loading…
Cancel
Save