mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 13:05:47 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
727dcd45d9 | ||
|
|
fac51b3400 |
No files matched your search
@@ -83,17 +83,18 @@
|
|||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity-alias
|
<!-- Red Magic Game Space only lists apps whose launcher entry is a real activity, not an alias. -->
|
||||||
|
<activity
|
||||||
android:name=".LauncherDark"
|
android:name=".LauncherDark"
|
||||||
android:targetActivity=".MainActivity"
|
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:exported="true">
|
android:exported="true"
|
||||||
|
android:theme="@android:style/Theme.NoDisplay">
|
||||||
<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" />
|
||||||
<category android:name="android.intent.category.CAR_LAUNCHER" />
|
<category android:name="android.intent.category.CAR_LAUNCHER" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity-alias>
|
</activity>
|
||||||
|
|
||||||
<activity-alias
|
<activity-alias
|
||||||
android:name=".LauncherLight"
|
android:name=".LauncherLight"
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.droiddeck.launcher
|
||||||
|
|
||||||
|
import android.app.Activity
|
||||||
|
import android.content.Intent
|
||||||
|
import android.os.Bundle
|
||||||
|
|
||||||
|
class LauncherDark : Activity() {
|
||||||
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
|
super.onCreate(savedInstanceState)
|
||||||
|
startActivity(Intent(intent).setClass(this, MainActivity::class.java)
|
||||||
|
.setFlags(intent.flags and (Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_MULTIPLE_TASK).inv()))
|
||||||
|
finish()
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user