Provide additional Android metadata

* java/AndroidManifest.xml.in: Enable preserving user data
beyond uninstallation, restarting activities without persiting
state, increase maximum number of simultaneously open
activities, and provide a sensible category.
This commit is contained in:
Po Lu 2024-06-04 10:23:13 +08:00
parent d812e94dde
commit 2a699edbe5

View file

@ -29,6 +29,8 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. -->
android:targetSandboxVersion="1"
android:installLocation="auto"
android:requestLegacyExternalStorage="true"
android:hasFragileUserData="true"
android:appCategory="productivity"
@ANDROID_SHARED_USER_ID@
@ANDROID_SHARED_USER_NAME@
android:versionCode="30"
@ -222,6 +224,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. -->
android:taskAffinity="emacs.primary_frame"
android:windowSoftInputMode="adjustResize"
android:exported="true"
android:stateNotNeeded="true"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|locale|fontScale">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -278,6 +281,8 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. -->
android:taskAffinity="emacs.secondary_frame"
android:windowSoftInputMode="adjustResize"
android:exported="true"
android:maxRecents="50"
android:stateNotNeeded="true"
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|locale|fontScale"/>
<activity android:autoRemoveFromRecents="true"