From cfc8d23c5ef2b1b9c69160ec9c9964e094dc1784 Mon Sep 17 00:00:00 2001 From: ezio84 Date: Thu, 30 Nov 2017 10:30:50 +0100 Subject: [PATCH] Color Picker: fix dead dialog showing under the new one after rotation to replicate: open the picker, rotate to landscape, press the back button or rotate to portrait and press the back button, you'll see the dead old view Signed-off-by: xyyx --- src/net/margaritov/preference/colorpicker/ColorPickerDialog.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/net/margaritov/preference/colorpicker/ColorPickerDialog.java b/src/net/margaritov/preference/colorpicker/ColorPickerDialog.java index 9a4e6ff..6f4c671 100644 --- a/src/net/margaritov/preference/colorpicker/ColorPickerDialog.java +++ b/src/net/margaritov/preference/colorpicker/ColorPickerDialog.java @@ -144,6 +144,7 @@ public class ColorPickerDialog extends AlertDialog implements ColorPickerView.On Bundle state = super.onSaveInstanceState(); state.putInt("old_color", mOldColor.getColor()); state.putInt("new_color", mNewColor.getColor()); + dismiss(); return state; }