diff options
author | yueg <yueg@google.com> | 2018-06-20 10:37:17 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-06-20 12:24:47 -0700 |
commit | 175b1a7a5e66076e0d7a2a2938b64468bdae149c (patch) | |
tree | c362998062e23280413ea4669c79313968a2c2f2 /java | |
parent | 5f0014288f4fba62b78bd794da11ad6a7f08d81f (diff) |
Fix text color in MultimediaFragment
Test: manual
PiperOrigin-RevId: 201376176
Change-Id: Iaaf29568249b470daa6fd38dae110b8528bc8493
Diffstat (limited to 'java')
-rw-r--r-- | java/com/android/incallui/sessiondata/MultimediaFragment.java | 5 | ||||
-rw-r--r-- | java/com/android/incallui/sessiondata/res/values/styles.xml | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/java/com/android/incallui/sessiondata/MultimediaFragment.java b/java/com/android/incallui/sessiondata/MultimediaFragment.java index 6c2490f92..ec3a6ff3a 100644 --- a/java/com/android/incallui/sessiondata/MultimediaFragment.java +++ b/java/com/android/incallui/sessiondata/MultimediaFragment.java @@ -34,6 +34,7 @@ import android.widget.TextView; import com.android.dialer.common.FragmentUtils; import com.android.dialer.common.LogUtil; import com.android.dialer.multimedia.MultimediaData; +import com.android.dialer.theme.base.ThemeComponent; import com.android.incallui.maps.MapsComponent; import com.bumptech.glide.Glide; import com.bumptech.glide.load.DataSource; @@ -106,6 +107,10 @@ public class MultimediaFragment extends Fragment implements AvatarPresenter { @Override public View onCreateView( LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, @Nullable Bundle bundle) { + layoutInflater = + layoutInflater.cloneInContext( + ThemeComponent.get(getContext()).theme().getThemedContext(getContext())); + if (isSpam) { LogUtil.i("MultimediaFragment.onCreateView", "show spam layout"); return layoutInflater.inflate(R.layout.fragment_spam, viewGroup, false); diff --git a/java/com/android/incallui/sessiondata/res/values/styles.xml b/java/com/android/incallui/sessiondata/res/values/styles.xml index dd898a4e2..fe217f0aa 100644 --- a/java/com/android/incallui/sessiondata/res/values/styles.xml +++ b/java/com/android/incallui/sessiondata/res/values/styles.xml @@ -18,7 +18,7 @@ <resources> <style name="Dialer.Incall.TextAppearance.Message" parent="Dialer.Incall.TextAppearance"> <item name="android:fontFamily">sans-serif</item> - <item name="android:textColor">@android:color/black</item> + <item name="android:textColor">?android:attr/textColorPrimary</item> <item name="android:textSize">24sp</item> </style> </resources> |