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

Commit 20c040dc authored by Brandon McAnsh's avatar Brandon McAnsh Committed by Adnan Begovic
Browse files

Settings: Conditionally remove Buttons tile from Dashboard



Change-Id: Iaddd3dd87ea2b0b04e3f312a156a6a25a948d039
Signed-off-by: default avatarBrandon McAnsh <brandon.mcansh@gmail.com>
parent 716714a0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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