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 <xyyx@mail.ru>
This commit is contained in:
ezio84
2017-11-30 10:30:50 +01:00
committed by hungphan2001
parent dbbb73f0ae
commit cfc8d23c5e

View File

@@ -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;
}