SDL: android: Default to custom theme in styles.xml (91acc)

From 91accc391d9d85cdeb541f3b136776f6c3e4f97d Mon Sep 17 00:00:00 2001
From: mechakotik <[EMAIL REDACTED]>
Date: Fri, 31 May 2024 15:13:07 +0300
Subject: [PATCH] android: Default to custom theme in styles.xml

Custom theme file exists in project, but is not used by app, which is kinda unintuitive. Using it by default so people who not familiar with Android development won't spend lots of time troubleshooting.

(cherry picked from commit 8f88c32ca6af066d586a22a0b5efd9ff6873e315)
(cherry picked from commit 1568501dd6dc29d412823ccc0fbfe4a5c85d377b)
---
 android-project/app/src/main/AndroidManifest.xml   | 2 +-
 android-project/app/src/main/res/values/styles.xml | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/android-project/app/src/main/AndroidManifest.xml b/android-project/app/src/main/AndroidManifest.xml
index e0d033410e14e..5157374b52865 100644
--- a/android-project/app/src/main/AndroidManifest.xml
+++ b/android-project/app/src/main/AndroidManifest.xml
@@ -62,7 +62,7 @@
     <application android:label="@string/app_name"
         android:icon="@mipmap/ic_launcher"
         android:allowBackup="true"
-        android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
+        android:theme="@style/AppTheme"
         android:hardwareAccelerated="true" >
 
         <!-- Example of setting SDL hints from AndroidManifest.xml:
diff --git a/android-project/app/src/main/res/values/styles.xml b/android-project/app/src/main/res/values/styles.xml
index ff6c9d2c0fb9e..7456b1b3346ac 100644
--- a/android-project/app/src/main/res/values/styles.xml
+++ b/android-project/app/src/main/res/values/styles.xml
@@ -1,8 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
 <resources>
-
     <!-- Base application theme. -->
-    <style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
+    <style name="AppTheme" parent="android:Theme.NoTitleBar.Fullscreen">
         <!-- Customize your theme here. -->
     </style>
-
 </resources>