mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 23:26:12 +02:00
Fixed manual setup state
This commit is contained in:
@@ -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);
|
||||
|
||||
FragmentActivity activity = getActivity();
|
||||
if (activity != null)
|
||||
manual = activity.getIntent().getBooleanExtra("manual", false);
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user