From 175b1a7a5e66076e0d7a2a2938b64468bdae149c Mon Sep 17 00:00:00 2001 From: yueg Date: Wed, 20 Jun 2018 10:37:17 -0700 Subject: Fix text color in MultimediaFragment Test: manual PiperOrigin-RevId: 201376176 Change-Id: Iaaf29568249b470daa6fd38dae110b8528bc8493 --- java/com/android/incallui/sessiondata/MultimediaFragment.java | 5 +++++ java/com/android/incallui/sessiondata/res/values/styles.xml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'java/com') 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 @@ -- cgit v1.2.3