mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Fixed manual setup state
This commit is contained in:
parent
db04d69bba
commit
e7701deec7
1 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue