Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57911703 authored by Martijn Coenen's avatar Martijn Coenen Committed by Android Git Automerger
Browse files

am b288f993: am 1eca250b: Merge "Fix disableForegroundNdefPush crash." into ics-mr0

* commit 'b288f993':
  Fix disableForegroundNdefPush crash.
parents 0d04c02a b288f993
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -48,7 +48,10 @@ public final class NfcFragment extends Fragment {
        FragmentManager manager = activity.getFragmentManager();
        Fragment fragment = manager.findFragmentByTag(FRAGMENT_TAG);
        if (fragment != null) {
            manager.beginTransaction().remove(fragment).commit();
            // We allow state loss at this point, because the state is only
            // lost when activity is being paused *AND* subsequently destroyed.
            // In that case, the app will setup foreground dispatch again anyway.
            manager.beginTransaction().remove(fragment).commitAllowingStateLoss();
        }
    }