Skip to content

Commit 973cf06

Browse files
check fragment state before displaying the next screen
1 parent cdcce68 commit 973cf06

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rave_android/src/main/java/com/flutterwave/raveandroid/rwfmobilemoney/RwfMobileMoneyFragment.java

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

220220
@Override
221221
public void showWebPage(String authenticationUrl) {
222-
new RaveVerificationUtils(this, ravePayInitializer.isStaging(), ravePayInitializer.getPublicKey(), ravePayInitializer.getTheme())
223-
.showWebpageVerificationScreen(authenticationUrl);
222+
if (isAdded()){
223+
new RaveVerificationUtils(this, ravePayInitializer.isStaging(), ravePayInitializer.getPublicKey(), ravePayInitializer.getTheme())
224+
.showWebpageVerificationScreen(authenticationUrl);
225+
}
224226
}
225227

226228
@Override

0 commit comments

Comments
 (0)