Fix bad theming on audio device selection popup.

This commit is contained in:
Alex Hart 2020-12-07 15:32:43 -04:00
parent be53bfa88f
commit aff00615cb
2 changed files with 6 additions and 4 deletions

View file

@ -113,7 +113,7 @@ public class WebRtcAudioOutputToggleButton extends AppCompatImageView {
rv.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayoutManager.VERTICAL, false));
rv.setAdapter(adapter);
picker = new AlertDialog.Builder(getContext())
picker = new AlertDialog.Builder(getContext(), R.style.Theme_Signal_AlertDialog_Dark_Cornered)
.setTitle(R.string.WebRtcAudioOutputToggle__audio_output)
.setView(rv)
.setCancelable(true)

View file

@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="?attr/listPreferredItemHeight">
<TextView
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/text"
android:layout_width="0dp"
android:layout_height="match_parent"
@ -13,10 +14,11 @@
android:gravity="center_vertical"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:textColor="@color/black"
android:textColor="@color/signal_text_primary"
android:textSize="16sp"
app:drawableTint="@color/signal_text_primary"
tools:drawableStart="@drawable/ic_photo_24"
tools:text="@string/WebRtcAudioOutputToggle__phone" />
tools:text="@string/WebRtcAudioOutputToggle__phone_earpiece" />
<RadioButton
android:id="@+id/radio"