]> git.eshelyaron.com Git - emacs.git/commitdiff
Provide additional Android metadata
authorPo Lu <luangruo@yahoo.com>
Tue, 4 Jun 2024 02:23:13 +0000 (10:23 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 4 Jun 2024 09:06:32 +0000 (11:06 +0200)
* 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.

(cherry picked from commit 2a699edbe5e1ab39d97b30e8d783763adc0acf9c)

java/AndroidManifest.xml.in

index a95b46c390505400b71c257eab2836f28e336afc..ff811ddf3f158dd88d4c6d5a652305dbdb9e89a6 100644 (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"