Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a50723f authored by Alan Viverette's avatar Alan Viverette
Browse files

Create ListPopupWindow handler against main looper

Required for CTS tests.

Bug: 21664698
Change-Id: Id33c672d7d50a2162c519249bbbf5b8081faf830
parent fe1fdacf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);