mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-26 01:28:50 -05:00
Fix multiselect so that one can use touch or the dpad or scroll ball to select
TODO: a preference to disable this behavior for folks who don't think like me
This commit is contained in:
parent
ae33aab57a
commit
e2fd488e66
@ -29,7 +29,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:focusable="true"
|
android:focusable="false"
|
||||||
android:button="@drawable/checkbox"
|
android:button="@drawable/checkbox"
|
||||||
android:background="@drawable/checkbox_background"
|
android:background="@drawable/checkbox_background"
|
||||||
/>
|
/>
|
||||||
|
@ -401,7 +401,10 @@ public class MessageList
|
|||||||
mAdapter.mListener);
|
mAdapter.mListener);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else if (mSelectedWidget == WIDGET_MULTISELECT) {
|
||||||
|
CheckBox selected = (CheckBox) v.findViewById(R.id.selected_checkbox);
|
||||||
|
selected.setChecked(!selected.isChecked());
|
||||||
|
} else
|
||||||
{
|
{
|
||||||
MessageInfoHolder message = (MessageInfoHolder) mAdapter.getItem(position);
|
MessageInfoHolder message = (MessageInfoHolder) mAdapter.getItem(position);
|
||||||
onOpenMessage(message);
|
onOpenMessage(message);
|
||||||
@ -626,7 +629,6 @@ public class MessageList
|
|||||||
MessageInfoHolder message = (MessageInfoHolder) mAdapter.getItem(position);
|
MessageInfoHolder message = (MessageInfoHolder) mAdapter.getItem(position);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (message != null)
|
if (message != null)
|
||||||
{
|
{
|
||||||
switch (keyCode)
|
switch (keyCode)
|
||||||
|
Loading…
Reference in New Issue
Block a user