Refactoring

This commit is contained in:
M66B
2019-06-30 19:56:23 +02:00
parent 0d33077b19
commit 77502a5a7b
13 changed files with 398 additions and 402 deletions

View File

@@ -1083,7 +1083,7 @@ public class FragmentCompose extends FragmentBase {
Bundle args = new Bundle();
args.putString("title", getString(R.string.title_send_at));
FragmentDuration fragment = new FragmentDuration();
FragmentDialogDuration fragment = new FragmentDialogDuration();
fragment.setArguments(args);
fragment.setTargetFragment(this, REQUEST_SEND_AFTER);
fragment.show(getFragmentManager(), "send:after");
@@ -3258,7 +3258,7 @@ public class FragmentCompose extends FragmentBase {
ForegroundColorSpan[] spans = ss.getSpans(start, end, ForegroundColorSpan.class);
int color = (spans.length > 0 ? spans[0].getForegroundColor() : Color.TRANSPARENT);
FragmentColor fragment = new FragmentColor();
FragmentDialogColor fragment = new FragmentDialogColor();
fragment.initialize(R.string.title_style_color, color, args, getContext());
fragment.setTargetFragment(FragmentCompose.this, REQUEST_COLOR);
fragment.show(getFragmentManager(), "account:color");