Manual labor

This commit is contained in:
M66B 2021-03-03 18:39:01 +01:00
parent 31100858a4
commit ef419e0378
1 changed files with 8 additions and 2 deletions

View File

@ -102,8 +102,14 @@ public class FragmentSetup extends FragmentBase {
if (savedInstanceState == null) { if (savedInstanceState == null) {
FragmentActivity activity = getActivity(); FragmentActivity activity = getActivity();
if (activity != null) if (activity != null) {
manual = activity.getIntent().getBooleanExtra("manual", false); Intent intent = activity.getIntent();
if (intent.hasExtra("manual")) {
manual = intent.getBooleanExtra("manual", false);
intent.removeExtra("manual");
activity.setIntent(intent);
}
}
} else } else
manual = savedInstanceState.getBoolean("fair:manual"); manual = savedInstanceState.getBoolean("fair:manual");