Fix speakerphone icon

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2019-05-29 16:11:19 +02:00
parent 215b339d1e
commit 3ecd2ac111
2 changed files with 7 additions and 2 deletions

View File

@ -38,8 +38,8 @@ android {
targetSdkVersion 28 targetSdkVersion 28
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
versionCode 97 versionCode 98
versionName "6.0.4" versionName "6.0.5"
flavorDimensions "default" flavorDimensions "default"
renderscriptTargetApi 19 renderscriptTargetApi 19

View File

@ -582,6 +582,11 @@ public class CallController extends BaseController {
public void onEnableSpeakerphoneClick() { public void onEnableSpeakerphoneClick() {
if (audioManager != null) { if (audioManager != null) {
audioManager.toggleUseSpeakerphone(); audioManager.toggleUseSpeakerphone();
if (audioManager.isSpeakerphoneAutoOn()) {
callControlEnableSpeaker.getHierarchy().setPlaceholderImage(R.drawable.ic_volume_up_white_24dp);
} else {
callControlEnableSpeaker.getHierarchy().setPlaceholderImage(R.drawable.ic_volume_mute_white_24dp);
}
} }
} }