From 3fd8d51368342a0fe224c4a0161766e61c8c0512 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Tue, 24 Jan 2017 09:33:25 +0000 Subject: Revert "Add overlay option for Settings.System.ACCELEROMETER_ROTATION_ANGLES" The default of 11 (90, 270 and 360 degrees) is perfectly fine. Thus, this overlay is pretty useless. Only 1 device currently uses this (and not due to any major issue), so we aren't losing anything by removing this overlay. This reverts commit 936c4bfa7c64ce4403d519d0f0df72523da1ec21. Change-Id: I7eb81d00af1672638689daddd1e78c7e12b21c4d --- packages/SettingsProvider/res/values/defaults.xml | 7 ------- .../src/com/android/providers/settings/DatabaseHelper.java | 3 --- 2 files changed, 10 deletions(-) diff --git a/packages/SettingsProvider/res/values/defaults.xml b/packages/SettingsProvider/res/values/defaults.xml index 72f30f3..7a14241 100644 --- a/packages/SettingsProvider/res/values/defaults.xml +++ b/packages/SettingsProvider/res/values/defaults.xml @@ -29,13 +29,6 @@ true true true - - 11 102 false diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index e4b2409..42c1aa7 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -2593,9 +2593,6 @@ class DatabaseHelper extends SQLiteOpenHelper { loadBooleanSetting(stmt, Settings.System.ACCELEROMETER_ROTATION, R.bool.def_accelerometer_rotation); - loadIntegerSetting(stmt, Settings.System.ACCELEROMETER_ROTATION_ANGLES, - R.integer.def_accelerometer_rotation_angles); - loadDefaultHapticSettings(stmt); loadBooleanSetting(stmt, Settings.System.NOTIFICATION_LIGHT_PULSE, -- cgit v1.1