Settings: Add proximity check on wake preference

Splitted from commit 5aa2f34, adapted to the Lineage SDK
and squashed with commits c6dc688 and 19105ab.

Change-Id: I7516c833ff39de6bdb36c815a5292606cbaa0533
This commit is contained in:
Bruno Martins
2017-12-02 12:52:18 +00:00
committed by Michael Bestas
parent 486f2ce5c5
commit 4ab09243e3
3 changed files with 17 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ public class DisplaySettings extends DashboardFragment {
private static final String TAG = "DisplaySettings";
private static final String KEY_HIGH_TOUCH_SENSITIVITY = "high_touch_sensitivity_enable";
private static final String KEY_PROXIMITY_ON_WAKE = "proximity_on_wake";
@Override
public int getMetricsCategory() {
@@ -102,6 +103,10 @@ public class DisplaySettings extends DashboardFragment {
LineageHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY)) {
keys.add(KEY_HIGH_TOUCH_SENSITIVITY);
}
if (!context.getResources().getBoolean(
org.lineageos.platform.internal.R.bool.config_proximityCheckOnWake)) {
keys.add(KEY_PROXIMITY_ON_WAKE);
}
return keys;
}