mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 07:23:03 +00:00
Update widget on save account
This commit is contained in:
parent
300f402a90
commit
15de2fd467
1 changed files with 16 additions and 10 deletions
|
@ -1229,7 +1229,12 @@ public class FragmentAccount extends FragmentBase {
|
||||||
fragment.setArguments(aargs);
|
fragment.setArguments(aargs);
|
||||||
fragment.setTargetFragment(FragmentAccount.this, REQUEST_SAVE);
|
fragment.setTargetFragment(FragmentAccount.this, REQUEST_SAVE);
|
||||||
fragment.show(getParentFragmentManager(), "account:save");
|
fragment.show(getParentFragmentManager(), "account:save");
|
||||||
} else if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) {
|
} else {
|
||||||
|
Context context = getContext();
|
||||||
|
if (context != null)
|
||||||
|
WidgetUnified.updateData(context); // Update color stripe
|
||||||
|
|
||||||
|
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) {
|
||||||
getParentFragmentManager().popBackStack();
|
getParentFragmentManager().popBackStack();
|
||||||
|
|
||||||
if (cbIdentity.isChecked()) {
|
if (cbIdentity.isChecked()) {
|
||||||
|
@ -1244,6 +1249,7 @@ public class FragmentAccount extends FragmentBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onException(Bundle args, Throwable ex) {
|
protected void onException(Bundle args, Throwable ex) {
|
||||||
|
|
Loading…
Reference in a new issue