diff options
| author | 2015-06-19 19:21:09 +0000 | |
|---|---|---|
| committer | 2015-06-19 19:21:11 +0000 | |
| commit | f3e8dca84b51e6eab1cc1384a5baabb0bae433a1 (patch) | |
| tree | e26f832f7d6c0686309b67a9276fa800a8376ded | |
| parent | 8d79e36c886a092bbc3d97b9c573e39021739886 (diff) | |
| parent | 4a50723fe399047e833e61f43928f21d90e2b5fa (diff) | |
Merge "Create ListPopupWindow handler against main looper" into mnc-dev
| -rw-r--r-- | core/java/android/widget/ListPopupWindow.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/widget/ListPopupWindow.java b/core/java/android/widget/ListPopupWindow.java index afc683ad439e..534bfad94e91 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); |