MCPcopy Create free account
hub / github.com/M66B/FairEmail / onExecuted

Method onExecuted

app/src/main/java/eu/faircode/email/FragmentPop.java:837–869  ·  view source on GitHub ↗
(Bundle args, Boolean dirty)

Source from the content-addressed store, hash-verified

835 }
836
837 @Override
838 protected void onExecuted(Bundle args, Boolean dirty) {
839 if (dirty) {
840 Bundle aargs = new Bundle();
841 aargs.putString("question", getString(R.string.title_ask_save));
842
843 FragmentDialogAsk fragment = new FragmentDialogAsk();
844 fragment.setArguments(aargs);
845 fragment.setTargetFragment(FragmentPop.this, REQUEST_SAVE);
846 fragment.show(getParentFragmentManager(), "account:save");
847 } else {
848 Context context = getContext();
849 if (context != null)
850 WidgetUnified.updateData(context); // Update color stripe
851
852 finish();
853
854 if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED)) {
855 boolean saved = args.getBoolean("saved");
856 if (saved && cbIdentity.isChecked()) {
857 Bundle aargs = new Bundle();
858 aargs.putLong("account", args.getLong("account"));
859
860 FragmentIdentity fragment = new FragmentIdentity();
861 fragment.setArguments(aargs);
862 FragmentTransaction fragmentTransaction = getParentFragmentManager().beginTransaction();
863 fragmentTransaction.setCustomAnimations(R.anim.enter_from_right, R.anim.leave_to_left);
864 fragmentTransaction.replace(R.id.content_frame, fragment).addToBackStack("identity");
865 fragmentTransaction.commit();
866 }
867 }
868 }
869 }
870
871 @Override
872 protected void onException(Bundle args, Throwable ex) {

Callers

nothing calls this directly

Calls 15

updateDataMethod · 0.95
eMethod · 0.95
getSwipeActionsMethod · 0.95
setViewsEnabledMethod · 0.95
isProMethod · 0.95
setTargetFragmentMethod · 0.80
getBooleanMethod · 0.80
getLongMethod · 0.80
addAllMethod · 0.80
finishMethod · 0.65
setTextMethod · 0.65
sizeMethod · 0.65

Tested by

no test coverage detected