update: 白屏优化

This commit is contained in:
lisonge 2021-11-19 20:56:44 +08:00
parent 67c76baf2b
commit b8f7d503ac
3 changed files with 29 additions and 1 deletions

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="li.songe.ad_closer">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
@ -18,12 +17,20 @@
android:label="@string/app_name"
android:excludeFromRecents="true"
android:theme="@style/Theme.AdCloser.NoActionBar">
</activity>
<activity
android:name=".EntryActivity"
android:exported="true"
android:label="@string/app_name"
android:excludeFromRecents="true"
android:theme="@style/Entry">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name=".service.AdCloserService"
android:exported="false"

View File

@ -0,0 +1,13 @@
package li.songe.ad_closer
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
class EntryActivity:AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
startActivity(Intent(this, MainActivity::class.java))
finish()
}
}

View File

@ -22,4 +22,12 @@
<style name="Theme.AdCloser.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="Theme.AdCloser.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<style name="Entry">
<item name="background">@android:color/transparent</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="colorPrimaryDark">@android:color/transparent</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
</resources>