Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sbmatch
Copy link

@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