Update widget on save account

pull/178/head
M66B 5 years ago
parent 300f402a90
commit 15de2fd467

@ -1229,7 +1229,12 @@ public class FragmentAccount extends FragmentBase {
fragment.setArguments(aargs);
fragment.setTargetFragment(FragmentAccount.this, REQUEST_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();
if (cbIdentity.isChecked()) {
@ -1244,6 +1249,7 @@ public class FragmentAccount extends FragmentBase {
}
}
}
}
@Override
protected void onException(Bundle args, Throwable ex) {

Loading…
Cancel
Save