Don't let ringer drawer icons be clicked while the drawer is animating closed.
This could happen after a quick double tap on the ringer icon, where you'd hit the ringer icon as the drawer animated shut. This resulted in a permanently unusable ringer drawer (a reboot was needed to fix). Fixes: 195392457 Test: switch to vibrate, then tap the ringer icon several times quickly Change-Id: If5ddd2a27364a6fd66ebd6bfd12b5810e1973a75
This commit is contained in:
@@ -2248,6 +2248,11 @@ public class VolumeDialogImpl implements VolumeDialog,
|
||||
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
// If the ringer drawer isn't open, don't let anything in it be clicked.
|
||||
if (!mIsRingerDrawerOpen) {
|
||||
return;
|
||||
}
|
||||
|
||||
setRingerMode(mClickedRingerMode);
|
||||
|
||||
mRingerDrawerIconAnimatingSelected = getDrawerIconViewForMode(mClickedRingerMode);
|
||||
|
||||
Reference in New Issue
Block a user