From 96a9f644d4f3fd8ba4eaf70863096c3ee6992897 Mon Sep 17 00:00:00 2001 From: cruzach Date: Wed, 8 Apr 2020 14:53:44 -0400 Subject: [PATCH 1/3] [android][navigation bar] re apply full screen config on window focus --- .../exp/exponent/experience/ExperienceActivity.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/android/expoview/src/main/java/host/exp/exponent/experience/ExperienceActivity.java b/android/expoview/src/main/java/host/exp/exponent/experience/ExperienceActivity.java index 40ade9e0504d7..b9fda22076bb7 100644 --- a/android/expoview/src/main/java/host/exp/exponent/experience/ExperienceActivity.java +++ b/android/expoview/src/main/java/host/exp/exponent/experience/ExperienceActivity.java @@ -268,6 +268,16 @@ protected void onResume() { registerForNotifications(); } + @Override + public void onWindowFocusChanged(boolean hasFocus) { + // Check for manifest to avoid calling this when first loading an experience + if (hasFocus && mManifest != null) { + runOnUiThread(() -> { + ExperienceActivityUtils.setNavigationBar(mManifest, ExperienceActivity.this); + }); + } + } + public void soloaderInit() { if (mDetachSdkVersion != null) { SoLoader.init(this, false); From 27038c31b82c7a60b7b2ab7272347328702194ea Mon Sep 17 00:00:00 2001 From: cruzach Date: Thu, 9 Apr 2020 10:37:30 -0400 Subject: [PATCH 2/3] add super call --- .../java/host/exp/exponent/experience/ExperienceActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/android/expoview/src/main/java/host/exp/exponent/experience/ExperienceActivity.java b/android/expoview/src/main/java/host/exp/exponent/experience/ExperienceActivity.java index b9fda22076bb7..3c517cf9c66bd 100644 --- a/android/expoview/src/main/java/host/exp/exponent/experience/ExperienceActivity.java +++ b/android/expoview/src/main/java/host/exp/exponent/experience/ExperienceActivity.java @@ -270,6 +270,7 @@ protected void onResume() { @Override public void onWindowFocusChanged(boolean hasFocus) { + super.onWindowFocusChanged(hasFocus); // Check for manifest to avoid calling this when first loading an experience if (hasFocus && mManifest != null) { runOnUiThread(() -> { From 4581b2f518646efb01ac69ea52be7273d2ccbd2e Mon Sep 17 00:00:00 2001 From: Charlie Cruzan <35579283+cruzach@users.noreply.github.com> Date: Fri, 10 Apr 2020 10:30:22 -0400 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a4e706725125..a4510cba092f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ This is the log of notable changes to the Expo client that are developer-facing. - Fixed `KeepAwake.activateKeepAwake` not working with multiple tags on Android. ([#7197](https://github.com/expo/expo/pull/7197) by [@lukmccall](https://github.com/lukmccall)) - Fix `Contacts.presentFormAsync` pre-filling. ([#7285](https://github.com/expo/expo/pull/7285) by [@abdelilah](https://github.com/abdelilah) & [@lukmccall](https://github.com/lukmccall)) - Removed unknown CLI options `--android-package` and `--ios-bundle-identifier` from docs. ([#7354](https://github.com/expo/expo/pull/7354) by [@ca057](https://github.com/ca057)) +- Fixed `androidNavigationBar.hidden` configuration not remaining applied after backgrounding & foregrounding the app. ([#7770](https://github.com/expo/expo/pull/7770) by [@cruzach](https://github.com/cruzach)) ## 37.0.0