]> git.eshelyaron.com Git - emacs.git/commitdiff
Better port to Android 35
authorPo Lu <luangruo@yahoo.com>
Thu, 5 Sep 2024 02:47:51 +0000 (10:47 +0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 5 Sep 2024 05:42:26 +0000 (07:42 +0200)
* java/INSTALL: Don't refer users to build-tools 33.0.x.

* java/res/values-v35/styles.xml: New dark theme; define status
bar colors properly for this release.

(cherry picked from commit 73367ea5c1821e46cea57fda424a8a65ac5e586a)

java/INSTALL
java/res/values-v35/styles.xml [new file with mode: 0644]

index fa13a4d107dd59d36b2fe55d1e9f94f09d00f4c7..242dd776923229407d6dc3fe02af1a2f6e27f9ea 100644 (file)
@@ -116,8 +116,7 @@ DEX format employed by Android.  There is one subdirectory for each
 version of the build tools, but the version you opt for is not of
 paramount significance: if your version does not work, configure will
 protest, so install a newer one.  We anticipate that most recent
-releases will work, such as those from the 33.0.x, 34.0.x, and 35.0.x
-series.
+releases will work, such as those from the 34.0.x, and 35.0.x series.
 
 \f
 BUILDING WITH OLD NDK VERSIONS
diff --git a/java/res/values-v35/styles.xml b/java/res/values-v35/styles.xml
new file mode 100644 (file)
index 0000000..7d2f816
--- /dev/null
@@ -0,0 +1,30 @@
+<!-- Style resources for GNU Emacs on Android.
+
+Copyright (C) 2024 Free Software Foundation, Inc.
+
+This file is part of GNU Emacs.
+
+GNU Emacs is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+GNU Emacs is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>. -->
+
+<resources>
+  <!-- Style used for popup menus and relatives from Android 15.0
+       onwards.  -->
+  <style name="EmacsStyle" parent="@android:style/Theme.DeviceDefault.DayNight">
+    <item name="android:windowActionBar">false</item>
+    <item name="android:windowNoTitle">true</item>
+    <item name="android:windowLightStatusBar">?android:attr/isLightTheme</item>
+  </style>
+  <style name="EmacsStyleOpen"
+        parent="@android:style/Theme.DeviceDefault.DayNight"/>
+</resources>