File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed
ui/src/main/java/io/snabble/sdk/ui/checkout Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22All notable changes to this project will be documented in this file.
33
4+ ## [ 0.45.2]
5+
6+ ### Fixed
7+ - CheckoutOnlineView not updating when coming from an activity resumed state
8+
49## [ 0.45.1]
510
611### Changes
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ allprojects {
3131 }
3232
3333 project. ext {
34- sdkVersion= ' 0.45.1 '
34+ sdkVersion= ' 0.45.2 '
3535 versionCode= 1
3636
3737 compileSdkVersion= 30
Original file line number Diff line number Diff line change @@ -173,6 +173,11 @@ public void onStateChanged(Checkout.State state) {
173173 return ;
174174 }
175175
176+ FragmentActivity hostActivity = UIUtils .getHostFragmentActivity (getContext ());
177+ if (!hostActivity .getLifecycle ().getCurrentState ().isAtLeast (Lifecycle .State .RESUMED )) {
178+ return ;
179+ }
180+
176181 SnabbleUI .Callback callback = SnabbleUI .getUiCallback ();
177182 if (callback == null ) {
178183 Logger .e ("ui action could not be performed: callback is null" );
You can’t perform that action at this time.
0 commit comments