mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-31 11:32:00 +00:00
Fix speakerphone icon
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
215b339d1e
commit
3ecd2ac111
@ -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
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user