1
0
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:
Jesse Vincent 2009-11-27 03:28:26 +00:00
parent ae33aab57a
commit e2fd488e66
2 changed files with 7 additions and 5 deletions

View File

@ -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"
/> />

View File

@ -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)