OSDN Git Service

Only show settings icon for set up users
authorJulia Reynolds <juliacr@google.com>
Wed, 18 Apr 2018 14:01:20 +0000 (10:01 -0400)
committerJulia Reynolds <juliacr@google.com>
Wed, 18 Apr 2018 14:12:48 +0000 (14:12 +0000)
Test: manual inspection
Change-Id: Iec065269eaed7a906fafad332b1ef168f575773b
Fixes: 77548684

packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java

index c8fcfce..b08cdef 100644 (file)
@@ -411,7 +411,7 @@ public class VolumeDialogImpl implements VolumeDialog {
 
     public void initSettingsH() {
         mSettingsView.setVisibility(
-                mDeviceProvisionedController.isDeviceProvisioned() ? VISIBLE : GONE);
+                mDeviceProvisionedController.isCurrentUserSetup() ? VISIBLE : GONE);
         mSettingsIcon.setOnClickListener(v -> {
             Events.writeEvent(mContext, Events.EVENT_SETTINGS_CLICK);
             Intent intent = new Intent(Settings.ACTION_SOUND_SETTINGS);