Prevent double found thread

pull/214/head
M66B 1 year ago
parent e5c8aa2600
commit 95c5910523

@ -2481,7 +2481,15 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
if (lastSnackbar != null && lastSnackbar.isShown())
lastSnackbar.dismiss();
if (!found && getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
if (found) {
List<Fragment> fragments = getSupportFragmentManager().getFragments();
if (fragments.size() > 0) {
Bundle args = fragments.get(fragments.size() - 1).getArguments();
if (args != null && args.getBoolean("found"))
getSupportFragmentManager().popBackStack();
}
} else
getSupportFragmentManager().popBackStack("thread", FragmentManager.POP_BACK_STACK_INCLUSIVE);
Bundle args = new Bundle();

Loading…
Cancel
Save