Переглянути джерело

remove call activity from tasks

add launch screen for call

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 3 роки тому
батько
коміт
7f19816961
2 змінених файлів з 11 додано та 1 видалено
  1. 4 1
      app/src/main/AndroidManifest.xml
  2. 7 0
      app/src/main/res/values/styles.xml

+ 4 - 1
app/src/main/AndroidManifest.xml

@@ -124,9 +124,12 @@
 
         <activity
             android:name=".activities.MagicCallActivity"
+            android:theme="@style/AppTheme.CallLauncher"
             android:supportsPictureInPicture="true"
             android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation"
-            android:launchMode="singleTask" />
+            android:launchMode="singleTask"
+            android:taskAffinity=".call"
+            android:excludeFromRecents="true" />
 
         <activity
             android:name=".activities.FullScreenImageActivity"

+ 7 - 0
app/src/main/res/values/styles.xml

@@ -187,6 +187,13 @@
         <item name="android:navigationBarColor">@color/colorPrimary</item>
     </style>
 
+    <!-- Call Launch screen -->
+    <style name="AppTheme.CallLauncher">
+        <item name="android:windowBackground">@color/black</item>
+        <item name="android:statusBarColor">@color/black</item>
+        <item name="android:navigationBarColor">@color/black</item>
+    </style>
+
     <style name="Nextcloud.Material.TextButton" parent="Widget.MaterialComponents.Button.TextButton.Icon">
         <item name="android:typeface">sans</item>
         <item name="android:textStyle">bold</item>