diff options
author | Maksim <MoNTE48@mail.ua> | 2018-12-03 00:39:35 +0100 |
---|---|---|
committer | Paramat <paramat@users.noreply.github.com> | 2018-12-02 23:39:35 +0000 |
commit | f70f7875e2a2e49f80470832ae97e73f171d6460 (patch) | |
tree | 6620b45d2e0dd0b5e910120d6f17bcb471370c46 /build/android/src/main/res/values | |
parent | 1b0fd195c614ffa1b04d687e7793fb5bb266c535 (diff) | |
download | minetest-f70f7875e2a2e49f80470832ae97e73f171d6460.tar.gz minetest-f70f7875e2a2e49f80470832ae97e73f171d6460.tar.bz2 minetest-f70f7875e2a2e49f80470832ae97e73f171d6460.zip |
Update Android java code (#7820)
Targets SDK 26 as required by the playstore.
Fixes screen auto-rotation closing game.
Hides on-screen navigation bar if present.
Update gradlew.
Fix display aspect on 18+/:9 displays (like a Samsung Galaxy S9).
Remove small app icons, not required.
Fix xml in unpacking activity.
Support Android permission: On Android 6.0+ you need to manually give write
permission (as required by google).
Background during unpacking (just a demo for now).
Material Design: no more Android 2 interface.
Immersive mode (Android 4.4+ - hide NavBar for fullscreen mode).
Diffstat (limited to 'build/android/src/main/res/values')
-rw-r--r-- | build/android/src/main/res/values/strings.xml | 6 | ||||
-rw-r--r-- | build/android/src/main/res/values/styles.xml | 13 |
2 files changed, 10 insertions, 9 deletions
diff --git a/build/android/src/main/res/values/strings.xml b/build/android/src/main/res/values/strings.xml index b407a77c6..a5eaef5d1 100644 --- a/build/android/src/main/res/values/strings.xml +++ b/build/android/src/main/res/values/strings.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> <resources> - <string name="preparing_media">Preparing media...</string> -</resources> - + <string name="preparing_media">Preparing media…</string> + <string name="not_granted">Required permission wasn\'t granted, Minetest can\'t run without it</string> +</resources>
\ No newline at end of file diff --git a/build/android/src/main/res/values/styles.xml b/build/android/src/main/res/values/styles.xml index 25b8df5a3..8b52472a5 100644 --- a/build/android/src/main/res/values/styles.xml +++ b/build/android/src/main/res/values/styles.xml @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="utf-8"?> <resources> - <style name="Theme.Transparent" parent="android:Theme"> - <item name="android:windowIsTranslucent">true</item> - <item name="android:windowBackground">@android:color/transparent</item> - <item name="android:windowContentOverlay">@null</item> + + <style name="AppTheme" parent="@android:style/android:Theme.Holo.Light.NoActionBar.Fullscreen"> <item name="android:windowNoTitle">true</item> - <item name="android:windowIsFloating">true</item> - <item name="android:backgroundDimEnabled">false</item> + <item name="android:windowAnimationStyle">@null</item> + <item name="android:background">@drawable/bg</item> </style> + + <style name="Theme.Dialog" parent="@android:style/android:Theme.Holo.Light.Dialog.NoActionBar"/> + </resources>
\ No newline at end of file |