天天看点

sprd安卓11 去掉桌面音量条中的铃声等音量条

--- a/sprd/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java
+++ b/sprd/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java
@@ -286,15 +286,15 @@ public class VolumeDialogImpl implements VolumeDialog,
 
         mSettingsView = mDialog.findViewById(R.id.settings_container);
         mSettingsIcon = mDialog.findViewById(R.id.settings);
-
+               //modify by luoyalong 20210729 for remove volume item begin
         if (mRows.isEmpty()) {
-            if (!AudioSystem.isSingleVolume(mContext)) {
+            /*if (!AudioSystem.isSingleVolume(mContext)) {
                 addRow(STREAM_ACCESSIBILITY, R.drawable.ic_volume_accessibility,
                         R.drawable.ic_volume_accessibility, true, false);
-            }
+            }*/
             addRow(AudioManager.STREAM_MUSIC,
                     R.drawable.shengyin, R.drawable.offshengyin, true, true);//modify by luoyalong 20210703 for volume style
-            if (!AudioSystem.isSingleVolume(mContext)) {
+            /*if (!AudioSystem.isSingleVolume(mContext)) {
                 addRow(AudioManager.STREAM_RING,
                         R.drawable.ic_volume_ringer, R.drawable.ic_volume_ringer_mute, true, false);
                 addRow(STREAM_ALARM,
@@ -306,7 +306,8 @@ public class VolumeDialogImpl implements VolumeDialog,
                         R.drawable.ic_volume_bt_sco, R.drawable.ic_volume_bt_sco, false, false);
                 addRow(AudioManager.STREAM_SYSTEM, R.drawable.ic_volume_system,
                         R.drawable.ic_volume_system_mute, false, false);
-            }
+            }*/
+               //modify by luoyalong 20210729 for remove volume item end
         } else {
             addExistingRows();
         }