diff --git a/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt b/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt index cc5afb41..c199d18e 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt @@ -308,9 +308,10 @@ class MainActivity : AppCompatActivity() { am.isSpeakerphoneOn = !am.isSpeakerphoneOn val speakerIcon = findViewById(R.id.speakerIcon) as ActionMenuItemView if (am.isSpeakerphoneOn) - speakerIcon.setBackgroundColor(Color.RED) // speakerIcon.setIcon(ContextCompat.getDrawable(this, R.drawable.speaker_on)) + speakerIcon.setBackgroundColor(Color.rgb(0x04,0xb4, 0x04)) else + // speakerIcon.setBackgroundColor(resources.getColor(R.color.colorPrimary, applicationContext.theme)) speakerIcon.setBackgroundColor(resources.getColor(R.color.colorPrimary)) return true } diff --git a/app/src/main/res/drawable-hdpi/ic_action_speaker.png b/app/src/main/res/drawable-hdpi/ic_action_speaker.png new file mode 100644 index 00000000..3e48febb Binary files /dev/null and b/app/src/main/res/drawable-hdpi/ic_action_speaker.png differ diff --git a/app/src/main/res/drawable-mdpi/ic_action_speaker.png b/app/src/main/res/drawable-mdpi/ic_action_speaker.png new file mode 100644 index 00000000..ccb84c1b Binary files /dev/null and b/app/src/main/res/drawable-mdpi/ic_action_speaker.png differ diff --git a/app/src/main/res/drawable-xhdpi/ic_action_speaker.png b/app/src/main/res/drawable-xhdpi/ic_action_speaker.png new file mode 100644 index 00000000..adf989ae Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/ic_action_speaker.png differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_speaker.png b/app/src/main/res/drawable-xxhdpi/ic_action_speaker.png new file mode 100644 index 00000000..022cece9 Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/ic_action_speaker.png differ diff --git a/app/src/main/res/drawable/speaker.png b/app/src/main/res/drawable/speaker.png deleted file mode 100644 index 54fa9b74..00000000 Binary files a/app/src/main/res/drawable/speaker.png and /dev/null differ diff --git a/app/src/main/res/menu/speaker_icon.xml b/app/src/main/res/menu/speaker_icon.xml index e69de29b..7c2ebb86 100644 --- a/app/src/main/res/menu/speaker_icon.xml +++ b/app/src/main/res/menu/speaker_icon.xml @@ -0,0 +1,12 @@ + + + + + +