1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04: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,8 +29,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:focusable="true"
android:focusable="false"
android:button="@drawable/checkbox"
android:background="@drawable/checkbox_background"
/>
</LinearLayout>
</LinearLayout>

View File

@ -401,7 +401,10 @@ public class MessageList
mAdapter.mListener);
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);
onOpenMessage(message);
@ -623,8 +626,7 @@ public class MessageList
{
if (position >= 0)
{
MessageInfoHolder message = (MessageInfoHolder) mAdapter.getItem(position);
MessageInfoHolder message = (MessageInfoHolder) mAdapter.getItem(position);
if (message != null)