Dismiss color picker on pause

Signed-off-by: M66B <M66B@users.noreply.github.com>
This commit is contained in:
M66B
2019-06-30 10:25:50 +02:00
parent ea1f85e712
commit 29ec1ef5bc
7 changed files with 41 additions and 6 deletions

View File

@@ -3220,7 +3220,7 @@ public class FragmentCompose extends FragmentBase {
int color = (spans.length > 0 ? spans[0].getForegroundColor() : Color.TRANSPARENT);
int[] colors = getContext().getResources().getIntArray(R.array.colorPicker);
ColorPickerDialog colorPickerDialog = new ColorPickerDialog();
ColorPickerDialog colorPickerDialog = new ColorPickerDialogEx(getViewLifecycleOwner());
colorPickerDialog.initialize(R.string.title_style_color, colors, color, 4, colors.length);
colorPickerDialog.setOnColorSelectedListener(new ColorPickerSwatch.OnColorSelectedListener() {
@Override