(Bundle args, Boolean dirty)
| 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) { |
nothing calls this directly
no test coverage detected