Skip to content

Commit 92b3a54

Browse files
check fragment state before displaying the next screen
1 parent 7cabe22 commit 92b3a54

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rave_android/src/main/java/com/flutterwave/raveandroid/ach/AchFragment.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,10 @@ public void showRedirectMessage(boolean active) {
157157

158158
@Override
159159
public void showWebView(String authUrl, String flwRef) {
160-
161-
new RaveVerificationUtils(this, ravePayInitializer.isStaging(), ravePayInitializer.getPublicKey(), ravePayInitializer.getTheme())
162-
.showWebpageVerificationScreen(authUrl);
160+
if (isAdded()){
161+
new RaveVerificationUtils(this, ravePayInitializer.isStaging(), ravePayInitializer.getPublicKey(), ravePayInitializer.getTheme())
162+
.showWebpageVerificationScreen(authUrl);
163+
}
163164
}
164165

165166
private void dismissDialog() {

0 commit comments

Comments
 (0)