mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-24 08:38:51 -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,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>
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user