diff options
| author | Po Lu | 2025-03-03 21:57:05 +0800 |
|---|---|---|
| committer | Po Lu | 2025-03-03 21:59:41 +0800 |
| commit | 96d26b493618f59bbdd4de86be65e784735541c8 (patch) | |
| tree | eb1cc7d32aeea967c3676fb8a86b95b8866098f5 /java/res/values-v35/style.xml | |
| parent | f372508f68c9797f8d17cce0293526f3f30cb4c4 (diff) | |
| download | emacs-96d26b493618f59bbdd4de86be65e784735541c8.tar.gz emacs-96d26b493618f59bbdd4de86be65e784735541c8.zip | |
Fix styling issues on Android 15 QPR1
* java/org/gnu/emacs/EmacsView.java (EmacsView): Guarantee that
frame views are created with the correct theme.
* java/res/values-v20/style.xml (EmacsStyle):
* java/res/values-v29/style.xml (EmacsStyle): Disable a swiping
gesture enabled on certain Android systems.
* java/res/values-v35/style.xml: Rename from `styles'.xml.
Diffstat (limited to 'java/res/values-v35/style.xml')
| -rw-r--r-- | java/res/values-v35/style.xml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/java/res/values-v35/style.xml b/java/res/values-v35/style.xml new file mode 100644 index 00000000000..0f7aeea5081 --- /dev/null +++ b/java/res/values-v35/style.xml | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | <!-- Style resources for GNU Emacs on Android. | ||
| 2 | |||
| 3 | Copyright (C) 2024-2025 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | GNU Emacs is free software: you can redistribute it and/or modify | ||
| 8 | it under the terms of the GNU General Public License as published by | ||
| 9 | the Free Software Foundation, either version 3 of the License, or | ||
| 10 | (at your option) any later version. | ||
| 11 | |||
| 12 | GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | GNU General Public License for more details. | ||
| 16 | |||
| 17 | You should have received a copy of the GNU General Public License | ||
| 18 | along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. --> | ||
| 19 | |||
| 20 | <resources> | ||
| 21 | <!-- Style used for popup menus and relatives from Android 15.0 | ||
| 22 | onwards. --> | ||
| 23 | <style name="EmacsStyle" parent="@android:style/Theme.DeviceDefault.DayNight"> | ||
| 24 | <item name="android:windowActionBar">false</item> | ||
| 25 | <item name="android:windowNoTitle">true</item> | ||
| 26 | <item name="android:windowLightStatusBar">?android:attr/isLightTheme</item> | ||
| 27 | <!-- Suppress the swipe-to-dismiss gesture enabled on certain | ||
| 28 | systems. --> | ||
| 29 | <item name="android:windowSwipeToDismiss">false</item> | ||
| 30 | </style> | ||
| 31 | <style name="EmacsStyleOpen" | ||
| 32 | parent="@android:style/Theme.DeviceDefault.DayNight"/> | ||
| 33 | </resources> | ||