You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.4 KiB
61 lines
2.4 KiB
diff --git a/packages/SystemUI/Android.bp b/packages/SystemUI/Android.bp
|
|
index e148d4f547a4..781ffe482efa 100644
|
|
--- a/packages/SystemUI/Android.bp
|
|
+++ b/packages/SystemUI/Android.bp
|
|
@@ -137,6 +137,7 @@ android_library {
|
|
static_libs: [
|
|
"WifiTrackerLib",
|
|
"WindowManager-Shell",
|
|
+ "SystemUIMuteIconLib",
|
|
"SystemUIAnimationLib",
|
|
"SystemUIPluginLib",
|
|
"SystemUISharedLib",
|
|
@@ -226,6 +227,7 @@ android_library {
|
|
],
|
|
static_libs: [
|
|
"WifiTrackerLib",
|
|
+ "SystemUIMuteIconLib",
|
|
"SystemUIAnimationLib",
|
|
"SystemUIPluginLib",
|
|
"SystemUISharedLib",
|
|
diff --git a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java
|
|
index 13a5b967e2d3..757e6bf499bb 100755
|
|
--- a/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java
|
|
+++ b/packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java
|
|
@@ -136,6 +136,8 @@ import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.function.Consumer;
|
|
|
|
+import com.whale.tv.system.ui.mute.IMuteIcon;
|
|
+import com.whale.tv.system.ui.mute.IMuteIconImpl;
|
|
/**
|
|
* Visual presentation of the volume dialog.
|
|
*
|
|
@@ -255,7 +257,7 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
|
|
private final MediaOutputDialogFactory mMediaOutputDialogFactory;
|
|
private final VolumePanelFactory mVolumePanelFactory;
|
|
private final ActivityStarter mActivityStarter;
|
|
-
|
|
+ private final IMuteIcon mIMuteIcon;
|
|
private boolean mShowing;
|
|
private boolean mShowA11yStream;
|
|
|
|
@@ -330,6 +332,8 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
|
|
}
|
|
|
|
initDimens();
|
|
+ mIMuteIcon = new IMuteIconImpl();
|
|
+ mIMuteIcon.init(mController.getAudioManager());
|
|
}
|
|
|
|
@Override
|
|
@@ -1639,7 +1643,8 @@ public class VolumeDialogImpl implements VolumeDialog, Dumpable,
|
|
|
|
protected void onStateChangedH(State state) {
|
|
if (D.BUG) Log.d(TAG, "onStateChangedH() state: " + state.toString());
|
|
- if (mState != null && state != null
|
|
+ mIMuteIcon.update();
|
|
+ if (mState != null && state != null
|
|
&& mState.ringerModeInternal != -1
|
|
&& mState.ringerModeInternal != state.ringerModeInternal
|
|
&& state.ringerModeInternal == AudioManager.RINGER_MODE_VIBRATE) {
|
|
|