From 94deea7cd686479af9b63946e9834a8e16a5e266 Mon Sep 17 00:00:00 2001 From: Florin9doi Date: Wed, 21 Aug 2019 12:46:33 +0300 Subject: [PATCH] Support for notched phones --- android/res/values-v28/styles.xml | 10 ++++++++++ android/src/org/ppsspp/ppsspp/NativeActivity.java | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 android/res/values-v28/styles.xml diff --git a/android/res/values-v28/styles.xml b/android/res/values-v28/styles.xml new file mode 100644 index 000000000000..444beae2e04b --- /dev/null +++ b/android/res/values-v28/styles.xml @@ -0,0 +1,10 @@ + + + #FF000000 + + diff --git a/android/src/org/ppsspp/ppsspp/NativeActivity.java b/android/src/org/ppsspp/ppsspp/NativeActivity.java index 1ced155cf3f0..5ab550e81133 100644 --- a/android/src/org/ppsspp/ppsspp/NativeActivity.java +++ b/android/src/org/ppsspp/ppsspp/NativeActivity.java @@ -409,7 +409,8 @@ private void updateSystemUiVisibility() { flags |= View.SYSTEM_UI_FLAG_LOW_PROFILE; } if (useImmersive()) { - flags |= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION; + flags |= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION + | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN; } if (getWindow().getDecorView() != null) { getWindow().getDecorView().setSystemUiVisibility(flags);