Commit d710ba55 authored by Amirhossein Naghshzan's avatar Amirhossein Naghshzan Committed by Adrien Béraud

CallFragment: toggle mute icon

Change-Id: Ie446a5b5f0a00fd91de835d152445535aa91f80b
parent 17e63d2d
......@@ -1353,6 +1353,7 @@ public class CallFragment extends BaseSupportFragment<CallPresenter> implements
public void micClicked() {
presenter.muteMicrophoneToggled(binding.callMicBtn.isChecked());
binding.callMicBtn.setImageResource(binding.callMicBtn.isChecked()? R.drawable.baseline_mic_off_24 : R.drawable.baseline_mic_24);
}
public void hangUpClicked() {
......
......@@ -303,7 +303,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
android:onClick="@{() -> presenter.micClicked()}"
android:padding="16dp"
android:tint="@color/white"
app:srcCompat="@drawable/baseline_mic_off_24"
app:srcCompat="@drawable/baseline_mic_24"
tools:visibility="visible" />
<cx.ring.views.CheckableImageButton
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment