Skip to content

Commit bd1ba7b

Browse files
check fragment state before displaying the next screen
1 parent 66e7f1a commit bd1ba7b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rave_android/src/main/java/com/flutterwave/raveandroid/ugmobilemoney/UgMobileMoneyFragment.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,10 @@ public void showToast(String message) {
234234

235235
@Override
236236
public void showWebPage(String authenticationUrl) {
237-
new RaveVerificationUtils(this, ravePayInitializer.isStaging(), ravePayInitializer.getPublicKey(), ravePayInitializer.getTheme())
238-
.showWebpageVerificationScreen(authenticationUrl);
237+
if(isAdded()){
238+
new RaveVerificationUtils(this, ravePayInitializer.isStaging(), ravePayInitializer.getPublicKey(), ravePayInitializer.getTheme())
239+
.showWebpageVerificationScreen(authenticationUrl);
240+
}
239241
}
240242

241243
@Override

0 commit comments

Comments
 (0)