Skip to content

Commit 53d153c

Browse files
committed
[fix] add super.onBackPressed call for mpesa and gh mobile money fragments to allow back navigation
1 parent eab1942 commit 53d153c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

raveandroid/src/main/java/com/flutterwave/raveandroid/RavePayActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ else if (currentFrag.equalsIgnoreCase("account")) {
188188
super.onBackPressed();
189189
}
190190
}
191+
else {
192+
setResult(RavePayActivity.RESULT_CANCELLED, new Intent());
193+
super.onBackPressed();
194+
}
191195
}
192196

193197
@Override

0 commit comments

Comments
 (0)