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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user