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

@@ -296,7 +296,7 @@ public class FragmentRule extends FragmentBase {
@Override
public void onClick(View v) {
int[] colors = getContext().getResources().getIntArray(R.array.colorPicker);
ColorPickerDialog colorPickerDialog = new ColorPickerDialog();
ColorPickerDialog colorPickerDialog = new ColorPickerDialogEx(getViewLifecycleOwner());
colorPickerDialog.initialize(R.string.title_flag_color, colors, color, 4, colors.length);
colorPickerDialog.setOnColorSelectedListener(new ColorPickerSwatch.OnColorSelectedListener() {
@Override