File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ui/src/main/java/io/snabble/sdk/ui/cart Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -223,20 +223,20 @@ public void onStateChanged(Checkout.State state) {
223223 if (state == Checkout .State .HANDSHAKING ) {
224224 progressDialog .setOnCancelListener (onCancelListener );
225225 progressDialog .showAfterDelay (500 );
226- } else {
227- progressDialog .dismiss ();
228226 }
229227
230228 if (state == Checkout .State .REQUEST_PAYMENT_METHOD || state == Checkout .State .WAIT_FOR_APPROVAL ) {
231229 SnabbleUICallback callback = SnabbleUI .getUiCallback ();
232230 if (callback != null ) {
233231 callback .showCheckout ();
234232 }
233+ progressDialog .dismiss ();
235234 }
236235
237236 if (state == Checkout .State .CONNECTION_ERROR ) {
238237 UIUtils .snackbar (coordinatorLayout , R .string .Snabble_Payment_errorStarting , Snackbar .LENGTH_SHORT )
239238 .show ();
239+ progressDialog .dismiss ();
240240 }
241241 }
242242
You can’t perform that action at this time.
0 commit comments