Skip to content

Commit 0e8bc23

Browse files
check fragment state before displaying the next screen
1 parent bd1ba7b commit 0e8bc23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rave_android/src/main/java/com/flutterwave/raveandroid/zmmobilemoney/ZmMobileMoneyFragment.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,10 @@ public void showToast(String message) {
267267

268268
@Override
269269
public void showWebPage(String authenticationUrl) {
270-
new RaveVerificationUtils(this, ravePayInitializer.isStaging(), ravePayInitializer.getPublicKey(), ravePayInitializer.getTheme())
271-
.showWebpageVerificationScreen(authenticationUrl);
270+
if(isAdded()){
271+
new RaveVerificationUtils(this, ravePayInitializer.isStaging(), ravePayInitializer.getPublicKey(), ravePayInitializer.getTheme())
272+
.showWebpageVerificationScreen(authenticationUrl);
273+
}
272274
}
273275

274276
@Override

0 commit comments

Comments
 (0)