From 0cbcae8e281229503a17f0c93913d2d73033799e Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 21 Jul 2014 11:37:53 -0700 Subject: Fix white text in audio mode popup (1/2) Bug: 15643498 Change-Id: I3d9205eb99b42b95e6a05d07039995277f8e29c6 --- InCallUI/src/com/android/incallui/CallButtonFragment.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'InCallUI/src') diff --git a/InCallUI/src/com/android/incallui/CallButtonFragment.java b/InCallUI/src/com/android/incallui/CallButtonFragment.java index 93bb00145..077c8124b 100644 --- a/InCallUI/src/com/android/incallui/CallButtonFragment.java +++ b/InCallUI/src/com/android/incallui/CallButtonFragment.java @@ -18,6 +18,7 @@ package com.android.incallui; import android.graphics.drawable.LayerDrawable; import android.os.Bundle; +import android.view.ContextThemeWrapper; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; @@ -492,7 +493,9 @@ public class CallButtonFragment private void showAudioModePopup() { Log.d(this, "showAudioPopup()..."); - mAudioModePopup = new PopupMenu(getView().getContext(), mAudioButton /* anchorView */); + final ContextThemeWrapper contextWrapper = new ContextThemeWrapper(getActivity(), + R.style.InCallPopupMenuStyle); + mAudioModePopup = new PopupMenu(contextWrapper, mAudioButton /* anchorView */); mAudioModePopup.getMenuInflater().inflate(R.menu.incall_audio_mode_menu, mAudioModePopup.getMenu()); mAudioModePopup.setOnMenuItemClickListener(this); -- cgit v1.2.3