Refactoring

pull/199/head
M66B 4 years ago
parent 80a2f93959
commit 45372f117e

@ -41,7 +41,7 @@ import java.util.List;
import static android.app.Activity.RESULT_OK;
public class FragmentReview extends FragmentDialogBase {
public class FragmentDialogAccount extends FragmentDialogBase {
@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

@ -515,7 +515,7 @@ public class FragmentGmail extends FragmentBase {
finish();
ToastEx.makeText(getContext(), R.string.title_setup_oauth_updated, Toast.LENGTH_LONG).show();
} else {
FragmentReview fragment = new FragmentReview();
FragmentDialogAccount fragment = new FragmentDialogAccount();
fragment.setArguments(args);
fragment.setTargetFragment(FragmentGmail.this, ActivitySetup.REQUEST_DONE);
fragment.show(getParentFragmentManager(), "quick:review");

@ -775,7 +775,7 @@ public class FragmentOAuth extends FragmentBase {
finish();
ToastEx.makeText(getContext(), R.string.title_setup_oauth_updated, Toast.LENGTH_LONG).show();
} else {
FragmentReview fragment = new FragmentReview();
FragmentDialogAccount fragment = new FragmentDialogAccount();
fragment.setArguments(args);
fragment.setTargetFragment(FragmentOAuth.this, ActivitySetup.REQUEST_DONE);
fragment.show(getParentFragmentManager(), "oauth:review");

@ -467,7 +467,7 @@ public class FragmentQuickSetup extends FragmentBase {
tvSmtpFingerprint.setText(args.getString("smtp_fingerprint"));
grpSetup.setVisibility(result == null ? View.GONE : View.VISIBLE);
} else {
FragmentReview fragment = new FragmentReview();
FragmentDialogAccount fragment = new FragmentDialogAccount();
fragment.setArguments(args);
fragment.setTargetFragment(FragmentQuickSetup.this, ActivitySetup.REQUEST_DONE);
fragment.show(getParentFragmentManager(), "quick:review");

Loading…
Cancel
Save