• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Fragment Refresh not happening from API 26

Kadire

Lurker
Hi

We have a payment option in fragment Screen. When click on payment, the payment gateway will open. Once after the successful payment. We'll click back to Fragment screen. Now, Payment option is paid.

Fragment refreshing is working fine below API 26. It's not refreshing from API 26 and later.
I know Fragments are deprecated from Android P.

Please assist, if anyone has any idea to handle this situation.

Thank You.
 
Hey

I got the solution.

The below code will solve the problem, if the API is 26 or greater.
if (Build.VERSION.SDK_INT >= 26) {
ft.setReorderingAllowed(false);
}
Regards
 
Back
Top Bottom