Skip to content

Commit

Permalink
[android][navigation bar] re-apply full screen config on window focus (
Browse files Browse the repository at this point in the history
…#7770)

* [android][navigation bar] re apply full screen config on window focus

* add super call

* Update CHANGELOG.md
  • Loading branch information
cruzach committed Apr 10, 2020
1 parent c4a8ef7 commit 02bd0fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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

Expand Down
Expand Up @@ -268,6 +268,17 @@ protected void onResume() {
registerForNotifications();
}

@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(() -> {
ExperienceActivityUtils.setNavigationBar(mManifest, ExperienceActivity.this);
});
}
}

public void soloaderInit() {
if (mDetachSdkVersion != null) {
SoLoader.init(this, false);
Expand Down

0 comments on commit 02bd0fe

Please sign in to comment.