diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2023-09-27 01:58:16 +0200 |
---|---|---|
committer | Charles Lombardo <clombardo169@gmail.com> | 2023-09-27 19:40:09 +0200 |
commit | d70f18b87b03cf9ab908f2294a49a0f57684e230 (patch) | |
tree | 4d76a5d22f6d12e2aae9d498c6101e0f363db9f4 /src | |
parent | android: Don't update views if binding is null in onConfigurationChanged (diff) | |
download | yuzu-d70f18b87b03cf9ab908f2294a49a0f57684e230.tar yuzu-d70f18b87b03cf9ab908f2294a49a0f57684e230.tar.gz yuzu-d70f18b87b03cf9ab908f2294a49a0f57684e230.tar.bz2 yuzu-d70f18b87b03cf9ab908f2294a49a0f57684e230.tar.lz yuzu-d70f18b87b03cf9ab908f2294a49a0f57684e230.tar.xz yuzu-d70f18b87b03cf9ab908f2294a49a0f57684e230.tar.zst yuzu-d70f18b87b03cf9ab908f2294a49a0f57684e230.zip |
Diffstat (limited to '')
-rw-r--r-- | src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt index fbb2f6e18..6bb6a4464 100644 --- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt +++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/SetupFragment.kt @@ -295,8 +295,10 @@ class SetupFragment : Fragment() { override fun onSaveInstanceState(outState: Bundle) { super.onSaveInstanceState(outState) - outState.putBoolean(KEY_NEXT_VISIBILITY, binding.buttonNext.isVisible) - outState.putBoolean(KEY_BACK_VISIBILITY, binding.buttonBack.isVisible) + if (_binding != null) { + outState.putBoolean(KEY_NEXT_VISIBILITY, binding.buttonNext.isVisible) + outState.putBoolean(KEY_BACK_VISIBILITY, binding.buttonBack.isVisible) + } outState.putBooleanArray(KEY_HAS_BEEN_WARNED, hasBeenWarned) } |