| Index: ash/common/system/chromeos/palette/palette_tray.cc
|
| diff --git a/ash/common/system/chromeos/palette/palette_tray.cc b/ash/common/system/chromeos/palette/palette_tray.cc
|
| index 7f66235cfc8801c8bea789b9af2270ebd4228c06..1fdb996b02ee4a7e3666755872ecf04f06e5d895 100644
|
| --- a/ash/common/system/chromeos/palette/palette_tray.cc
|
| +++ b/ash/common/system/chromeos/palette/palette_tray.cc
|
| @@ -283,6 +283,10 @@ void PaletteTray::OnTouchscreenDeviceConfigurationChanged() {
|
| }
|
|
|
| void PaletteTray::OnStylusStateChanged(ui::StylusState stylus_state) {
|
| + // Device may have a stylus but it has been forcibly disabled.
|
| + if (!palette_utils::HasStylusInput())
|
| + return;
|
| +
|
| PaletteDelegate* palette_delegate = Shell::GetInstance()->palette_delegate();
|
|
|
| // Don't do anything if the palette should not be shown or if the user has
|
|
|