diff options
author | Brandon McAnsh <brandon.mcansh@gmail.com> | 2014-11-18 15:29:21 -0500 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-12-22 12:45:56 -0800 |
commit | 20c040dcd2b638de0b4b3e424401163ba8dd5432 (patch) | |
tree | c5d88f32e1c3ddb65e18b9768caaa69ed346c5fd | |
parent | 716714a085abd8688facec0e7a561bb8722ab55b (diff) | |
download | packages_apps_Settings-20c040dcd2b638de0b4b3e424401163ba8dd5432.tar.gz packages_apps_Settings-20c040dcd2b638de0b4b3e424401163ba8dd5432.tar.bz2 packages_apps_Settings-20c040dcd2b638de0b4b3e424401163ba8dd5432.zip |
Settings: Conditionally remove Buttons tile from Dashboard
Change-Id: Iaddd3dd87ea2b0b04e3f312a156a6a25a948d039
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
-rw-r--r-- | src/com/android/settings/SettingsActivity.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/settings/SettingsActivity.java b/src/com/android/settings/SettingsActivity.java index 06137086e..e0be0f50e 100644 --- a/src/com/android/settings/SettingsActivity.java +++ b/src/com/android/settings/SettingsActivity.java @@ -1319,6 +1319,12 @@ public class SettingsActivity extends Activity UserManager.DISALLOW_DEBUGGING_FEATURES)) { removeTile = true; } + } else if (id == R.id.button_settings) { + boolean hasDeviceKeys = getResources().getInteger( + com.android.internal.R.integer.config_deviceHardwareKeys) != 0; + if (!hasDeviceKeys) { + removeTile = true; + } } if (UserHandle.MU_ENABLED && UserHandle.myUserId() != 0 |