Merge pull request #3 from wukaicheng/main

修复启动图不生效问题
pull/10/head
Milk 4 years ago committed by GitHub
commit 7a7f06e391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      app/src/main/AndroidManifest.xml
  2. 1
      app/src/main/java/top/niunaijun/blackdex/view/base/WelcomeActivity.kt

@ -15,13 +15,16 @@
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.BlackDex"> android:theme="@style/Theme.BlackDex">
<activity android:name=".view.base.WelcomeActivity" <activity android:name=".view.base.WelcomeActivity"
android:theme="@style/WelcomeTheme"/> android:theme="@style/WelcomeTheme">
<activity android:name=".view.main.MainActivity">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
</activity>
<activity android:name=".view.main.MainActivity">
</activity> </activity>
</application> </application>

@ -15,5 +15,6 @@ class WelcomeActivity : BaseActivity() {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
val intent = Intent(this, MainActivity::class.java) val intent = Intent(this, MainActivity::class.java)
startActivity(intent) startActivity(intent)
finish()
} }
} }
Loading…
Cancel
Save