Skip to content

Commit cdcce68

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rave_android/src/main/java/com/flutterwave/raveandroid/ghmobilemoney/GhMobileMoneyFragment.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,10 @@ public void showWebPage(String authenticationUrl
232232
) {
233233

234234
// this.flwRef = flwRef;
235-
new RaveVerificationUtils(this, ravePayInitializer.isStaging(), ravePayInitializer.getPublicKey(), ravePayInitializer.getTheme())
236-
.showWebpageVerificationScreen(authenticationUrl);
235+
if(isAdded()){
236+
new RaveVerificationUtils(this, ravePayInitializer.isStaging(), ravePayInitializer.getPublicKey(), ravePayInitializer.getTheme())
237+
.showWebpageVerificationScreen(authenticationUrl);
238+
}
237239
}
238240

239241

0 commit comments

Comments
 (0)