diff options
-rw-r--r-- | java/com/android/incallui/video/impl/SpeakerButtonController.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/com/android/incallui/video/impl/SpeakerButtonController.java b/java/com/android/incallui/video/impl/SpeakerButtonController.java index e17cf7b9f..4ae746b3c 100644 --- a/java/com/android/incallui/video/impl/SpeakerButtonController.java +++ b/java/com/android/incallui/video/impl/SpeakerButtonController.java @@ -43,7 +43,7 @@ public class SpeakerButtonController implements OnCheckedChangeListener, OnClick private boolean isEnabled; private CharSequence contentDescription; - public SpeakerButtonController( + SpeakerButtonController( @NonNull CheckableImageButton button, @NonNull InCallButtonUiDelegate inCallButtonUiDelegate, @NonNull VideoCallScreenDelegate videoCallScreenDelegate) { @@ -54,9 +54,10 @@ public class SpeakerButtonController implements OnCheckedChangeListener, OnClick public void setEnabled(boolean isEnabled) { this.isEnabled = isEnabled; + updateButtonState(); } - public void updateButtonState() { + void updateButtonState() { button.setVisibility(View.VISIBLE); button.setEnabled(isEnabled); button.setChecked(isChecked); |