1. Are you ready for the Galaxy S20? Here is everything we know so far!

Fragment Refresh not happening from API 26

Discussion in 'Android Development' started by Kadire, Feb 25, 2019.

  1. Kadire

    Kadire Lurker
    Thread Starter

    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.
     


  2. Kadire

    Kadire Lurker
    Thread Starter

    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
     
Loading...
Similar Threads - Fragment Refresh happening
  1. adrem7
    Replies:
    0
    Views:
    235
  2. anwartan
    Replies:
    0
    Views:
    395
  3. maheshkulkarni
    Replies:
    0
    Views:
    177
  4. naighz
    Replies:
    0
    Views:
    225
  5. LordJavaNoob
    Replies:
    0
    Views:
    345
  6. RioLeal
    Replies:
    1
    Views:
    331
  7. Guitarist
    Replies:
    0
    Views:
    334
  8. RioLeal
    Replies:
    6
    Views:
    989
  9. curtis1997
    Replies:
    0
    Views:
    436
  10. umtblbl
    Replies:
    0
    Views:
    397

Share This Page

Loading...