Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 181e0e9e authored by Jason Monk's avatar Jason Monk
Browse files

Hide tap to wake on devices that don't support it

Bug: 21650579
Change-Id: I3fbcccc80b5773c74d8398f1d23b4762a5bf54ed
parent f8f9088a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -490,6 +490,9 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
                    if (!RotationPolicy.isRotationLockToggleVisible(context)) {
                        result.add(KEY_AUTO_ROTATE);
                    }
                    if (!isTapToWakeAvailable(context.getResources())) {
                        result.add(KEY_TAP_TO_WAKE);
                    }
                    return result;
                }
            };