Skip to content

新增:隐藏app图标 & 隐藏多任务卡片#231

Open
sbmatch wants to merge 2 commits intorom1v:masterfrom
sbmatch:master
Open

新增:隐藏app图标 & 隐藏多任务卡片#231
sbmatch wants to merge 2 commits intorom1v:masterfrom
sbmatch:master

Conversation

@sbmatch
Copy link
Copy Markdown

@sbmatch sbmatch commented Jul 4, 2022

add note for code

diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 0a7309a..b76ccbb 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -9,15 +9,19 @@
         android:icon="@mipmap/ic_launcher"
         android:label="@string/app_name"
         android:roundIcon="@mipmap/ic_launcher_round">
+
         <activity
             android:name="com.rom1v.sndcpy.MainActivity"
             android:exported="true"
             android:theme="@style/Theme.Transparent"
             android:showWhenLocked="true"
-            android:turnScreenOn="true">
+            android:turnScreenOn="true"
+            android:excludeFromRecents="true">
+            <!--Hide background multitasking cards-->
+
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
-                <category android:name="android.intent.category.LAUNCHER" />
+                <category android:name="android.intent.category.DEFAULT" /> <!--Hide desktop icons-->
             </intent-filter>
         </activity>

sbmatch added 2 commits July 4, 2022 14:41
- Hide background multitasking cards
- Hide background multitasking cards
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant