Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Dedupe photos launcher manifest overlays

Manav Rathi85601834f10d
diff --git a/mobile/apps/photos/android/app/src/dev/AndroidManifest.xml b/mobile/apps/photos/android/app/src/dev/AndroidManifest.xml
index a6523da664..40d572da89 100644
--- a/mobile/apps/photos/android/app/src/dev/AndroidManifest.xml
+++ b/mobile/apps/photos/android/app/src/dev/AndroidManifest.xml
@@ -2,19 +2,9 @@
xmlns:tools="http://schemas.android.com/tools"
package="io.ente.photos">
- <!-- Adding the following block to prevent the app from having multiple
- launcher entries. We can remove this along with the `LAUNCHER` category from
- main/AndroidManifest.xml once
- https://github.com/flutter/flutter/issues/38965 is fixed. -->
+ <!-- Strips MainActivity's launcher entry; see independent/AndroidManifest.xml. -->
<application>
- <activity android:name=".MainActivity"
- android:launchMode="singleTask"
- android:theme="@style/LaunchTheme"
- android:exported="true"
- android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
- android:hardwareAccelerated="true"
- android:windowSoftInputMode="adjustResize">
-
+ <activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER" tools:node="remove"/>
diff --git a/mobile/apps/photos/android/app/src/fdroid/AndroidManifest.xml b/mobile/apps/photos/android/app/src/fdroid/AndroidManifest.xml
index 8a16e73571..dc32c79d5c 100644
--- a/mobile/apps/photos/android/app/src/fdroid/AndroidManifest.xml
+++ b/mobile/apps/photos/android/app/src/fdroid/AndroidManifest.xml
@@ -1,10 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
package="io.ente.photos">
- <!-- Adding the following block to prevent the app from having multiple
- launcher entries. We can remove this along with the `LAUNCHER` category from
- main/AndroidManifest.xml once
- https://github.com/flutter/flutter/issues/38965 is fixed. -->
+ <!-- Strips MainActivity's launcher entry; see independent/AndroidManifest.xml. -->
<application>
<meta-data android:name="io.sentry.dsn" tools:node="remove"/>
<meta-data
@@ -12,14 +9,7 @@
android:value="false"
tools:replace="android:value"/>
- <activity android:name=".MainActivity"
- android:launchMode="singleTask"
- android:theme="@style/LaunchTheme"
- android:exported="true"
- android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
- android:hardwareAccelerated="true"
- android:windowSoftInputMode="adjustResize">
-
+ <activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER" tools:node="remove"/>
diff --git a/mobile/apps/photos/android/app/src/independent/AndroidManifest.xml b/mobile/apps/photos/android/app/src/independent/AndroidManifest.xml
index 127a709588..4067a1989b 100644
--- a/mobile/apps/photos/android/app/src/independent/AndroidManifest.xml
+++ b/mobile/apps/photos/android/app/src/independent/AndroidManifest.xml
@@ -7,14 +7,7 @@
main/AndroidManifest.xml once
https://github.com/flutter/flutter/issues/38965 is fixed. -->
<application>
- <activity android:name=".MainActivity"
- android:launchMode="singleTask"
- android:theme="@style/LaunchTheme"
- android:exported="true"
- android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
- android:hardwareAccelerated="true"
- android:windowSoftInputMode="adjustResize">
-
+ <activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER" tools:node="remove"/>
diff --git a/mobile/apps/photos/android/app/src/playstore/AndroidManifest.xml b/mobile/apps/photos/android/app/src/playstore/AndroidManifest.xml
index 127a709588..98aca0fc58 100644
--- a/mobile/apps/photos/android/app/src/playstore/AndroidManifest.xml
+++ b/mobile/apps/photos/android/app/src/playstore/AndroidManifest.xml
@@ -2,19 +2,9 @@
xmlns:tools="http://schemas.android.com/tools"
package="io.ente.photos">
- <!-- Adding the following block to prevent the app from having multiple
- launcher entries. We can remove this along with the `LAUNCHER` category from
- main/AndroidManifest.xml once
- https://github.com/flutter/flutter/issues/38965 is fixed. -->
+ <!-- Strips MainActivity's launcher entry; see independent/AndroidManifest.xml. -->
<application>
- <activity android:name=".MainActivity"
- android:launchMode="singleTask"
- android:theme="@style/LaunchTheme"
- android:exported="true"
- android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
- android:hardwareAccelerated="true"
- android:windowSoftInputMode="adjustResize">
-
+ <activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER" tools:node="remove"/>