From b3d9e4cb03eb259c3cd2d72ce3698595715c2f21 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Mon, 6 Feb 2012 17:46:23 +0300 Subject: [PATCH] [android] Use full-screen mode only on Kindle Fire --- android/AndroidManifest.xml | 2 +- android/res/values/full_screen_theme.xml | 2 +- android/src/com/mapswithme/maps/MWMActivity.java | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 77b45580f2..f5de4e3267 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -26,7 +26,7 @@ android:label="@string/app_name" android:screenOrientation="behind" android:configChanges="orientation|keyboardHidden" - android:theme="@style/MWMFullScreen"> + android:theme="@style/MWMNoTitle"> diff --git a/android/res/values/full_screen_theme.xml b/android/res/values/full_screen_theme.xml index a1c3a7572d..132ed715d5 100644 --- a/android/res/values/full_screen_theme.xml +++ b/android/res/values/full_screen_theme.xml @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/android/src/com/mapswithme/maps/MWMActivity.java b/android/src/com/mapswithme/maps/MWMActivity.java index f5f3e2f058..10cfa1fbd9 100644 --- a/android/src/com/mapswithme/maps/MWMActivity.java +++ b/android/src/com/mapswithme/maps/MWMActivity.java @@ -149,6 +149,13 @@ public class MWMActivity extends NvEventQueueActivity implements @Override public void onCreate(Bundle savedInstanceState) { + // Use full-screen on Kindle Fire only + if (android.os.Build.MODEL.equals("Kindle Fire")) + { + getWindow().addFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN); + getWindow().clearFlags(android.view.WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN); + } + super.onCreate(savedInstanceState); m_context = this;