Skip to content

Commit ee57fba

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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rave_android/src/main/java/com/flutterwave/raveandroid/francMobileMoney/FrancMobileMoneyFragment.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,10 @@ public void showProgressIndicator(boolean active) {
203203
public void showWebPage(String authenticationUrl, String flwRef) {
204204

205205
this.flwRef = flwRef;
206-
new RaveVerificationUtils(this, ravePayInitializer.isStaging(), ravePayInitializer.getPublicKey(), ravePayInitializer.getTheme())
207-
.showWebpageVerificationScreen(authenticationUrl,flwRef);
206+
if (isAdded()){
207+
new RaveVerificationUtils(this, ravePayInitializer.isStaging(), ravePayInitializer.getPublicKey(), ravePayInitializer.getTheme())
208+
.showWebpageVerificationScreen(authenticationUrl,flwRef);
209+
}
208210
}
209211

210212

0 commit comments

Comments
 (0)