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

Commit 91963586 authored by Ben Reich's avatar Ben Reich
Browse files

Fix crash on drag using mouse on large screen layout

When a mouse attempts to drag in list view whilst in the large screen
layout, it currently crashes with a null pointer reference. The field
`mIconLayout` was being referenced in the `inDragRegion` function,
however, the `layout-sw720dp/item_doc_list.xml` uses `@android:id/icon`
which doesn't create the ID correctly.

Bug: 356938552
Test: Attach mouse and attempt drag in all modes
Flag: EXEMPT bugfix
Change-Id: I6234bdc70d2f05086331608a4cc5e874ba2e7c23
parent 8ee4883b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@
        android:orientation="horizontal" >

        <FrameLayout
            android:id="@android:id/icon"
            android:id="@+id/icon"
            android:pointerIcon="hand"
            android:layout_width="@dimen/list_item_width"
            android:layout_height="@dimen/list_item_height"