1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Fixed manual setup state

This commit is contained in:
M66B 2021-02-16 18:48:00 +01:00
parent db04d69bba
commit e7701deec7

View file

@ -98,9 +98,12 @@ public class FragmentSetup extends FragmentBase {
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
setSubtitle(R.string.title_setup);
if (savedInstanceState == null) {
FragmentActivity activity = getActivity();
if (activity != null)
manual = activity.getIntent().getBooleanExtra("manual", false);
} else
manual = savedInstanceState.getBoolean("fair:manual");
textColorPrimary = Helper.resolveColor(getContext(), android.R.attr.textColorPrimary);
colorWarning = Helper.resolveColor(getContext(), R.attr.colorWarning);
@ -237,8 +240,6 @@ public class FragmentSetup extends FragmentBase {
}
});
if (savedInstanceState != null)
manual = savedInstanceState.getBoolean("fair:manual");
ibManual.setImageLevel(manual ? 0 /* less */ : 1 /* more */);
grpManual.setVisibility(manual ? View.VISIBLE : View.GONE);