Loading res/xml/display_settings.xml +1 −1 Original line number Diff line number Diff line Loading @@ -123,7 +123,7 @@ android:key="proximity_on_wake" android:title="@string/proximity_wake_title" android:summary="@string/proximity_wake_summary" android:defaultValue="false" /> android:defaultValue="true" /> <CheckBoxPreference android:key="wake_when_plugged_or_unplugged" Loading src/com/android/settings/DisplaySettings.java +5 −1 Original line number Diff line number Diff line Loading @@ -216,7 +216,11 @@ public class DisplaySettings extends SettingsPreferenceFragment implements if (!isTapToWakeSupported()) { advancedPrefs.removePreference(mTapToWake); mTapToWake = null; } else { } boolean proximityCheckOnWait = res.getBoolean( com.android.internal.R.bool.config_proximityCheckOnWake); if (!proximityCheckOnWait) { advancedPrefs.removePreference(findPreference(KEY_PROXIMITY_WAKE)); Settings.System.putInt(getContentResolver(), Settings.System.PROXIMITY_ON_WAKE, 1); } Loading Loading
res/xml/display_settings.xml +1 −1 Original line number Diff line number Diff line Loading @@ -123,7 +123,7 @@ android:key="proximity_on_wake" android:title="@string/proximity_wake_title" android:summary="@string/proximity_wake_summary" android:defaultValue="false" /> android:defaultValue="true" /> <CheckBoxPreference android:key="wake_when_plugged_or_unplugged" Loading
src/com/android/settings/DisplaySettings.java +5 −1 Original line number Diff line number Diff line Loading @@ -216,7 +216,11 @@ public class DisplaySettings extends SettingsPreferenceFragment implements if (!isTapToWakeSupported()) { advancedPrefs.removePreference(mTapToWake); mTapToWake = null; } else { } boolean proximityCheckOnWait = res.getBoolean( com.android.internal.R.bool.config_proximityCheckOnWake); if (!proximityCheckOnWait) { advancedPrefs.removePreference(findPreference(KEY_PROXIMITY_WAKE)); Settings.System.putInt(getContentResolver(), Settings.System.PROXIMITY_ON_WAKE, 1); } Loading