mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 11:42:22 +08:00
update: 白屏优化
This commit is contained in:
parent
67c76baf2b
commit
b8f7d503ac
|
@ -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"
|
||||
|
|
13
app/src/main/java/li/songe/ad_closer/EntryActivity.kt
Normal file
13
app/src/main/java/li/songe/ad_closer/EntryActivity.kt
Normal 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()
|
||||
}
|
||||
}
|
|
@ -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>
|
Loading…
Reference in New Issue
Block a user