summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2015-06-18 17:11:19 -0700
committerAlan Viverette <alanv@google.com>2015-06-18 17:11:19 -0700
commit4a50723fe399047e833e61f43928f21d90e2b5fa (patch)
treeabf9c363f9acfa8137a6b6d4b52f6ee979f895f2 /core
parentfe1fdacf1d256f5f1a5020906bc9c400b99a14bb (diff)
downloadframeworks_base-4a50723fe399047e833e61f43928f21d90e2b5fa.zip
frameworks_base-4a50723fe399047e833e61f43928f21d90e2b5fa.tar.gz
frameworks_base-4a50723fe399047e833e61f43928f21d90e2b5fa.tar.bz2
Create ListPopupWindow handler against main looper
Required for CTS tests. Bug: 21664698 Change-Id: Id33c672d7d50a2162c519249bbbf5b8081faf830
Diffstat (limited to 'core')
-rw-r--r--core/java/android/widget/ListPopupWindow.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/widget/ListPopupWindow.java b/core/java/android/widget/ListPopupWindow.java
index afc683a..534bfad 100644
--- a/core/java/android/widget/ListPopupWindow.java
+++ b/core/java/android/widget/ListPopupWindow.java
@@ -105,7 +105,7 @@ public class ListPopupWindow {
private final ListSelectorHider mHideSelector = new ListSelectorHider();
private Runnable mShowDropDownRunnable;
- private Handler mHandler = new Handler();
+ private final Handler mHandler;
private Rect mTempRect = new Rect();
@@ -212,6 +212,7 @@ public class ListPopupWindow {
*/
public ListPopupWindow(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
mContext = context;
+ mHandler = new Handler(context.getMainLooper());
final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ListPopupWindow,
defStyleAttr, defStyleRes);