Make nested folders selectable again
Bug 5009065 Change-Id: I58bcb748848592414ec2334951e57693ac24cd39
This commit is contained in:
parent
8067daaa0f
commit
a3ce177fa4
@ -220,9 +220,12 @@ class MailboxFragmentAdapter extends CursorAdapter {
|
||||
return isAccountRow((Cursor) getItem(position));
|
||||
}
|
||||
|
||||
/** Returns {@code true} if the specified row is a mailbox. */
|
||||
/**
|
||||
* Returns {@code true} if the specified row is a mailbox.
|
||||
* ({@link #ROW_TYPE_MAILBOX}, {@link #ROW_TYPE_CURMAILBOX} and {@link #ROW_TYPE_SUBMAILBOX})
|
||||
*/
|
||||
boolean isMailboxRow(int position) {
|
||||
return isMailboxrRow((Cursor) getItem(position));
|
||||
return isMailboxRow((Cursor) getItem(position));
|
||||
}
|
||||
|
||||
/** Returns {@code true} if the current row is of an account in the combined view. */
|
||||
@ -235,9 +238,12 @@ class MailboxFragmentAdapter extends CursorAdapter {
|
||||
return getRowType(cursor) == ROW_TYPE_HEADER;
|
||||
}
|
||||
|
||||
/** Returns {@code true} if the current row is a mailbox */
|
||||
private static boolean isMailboxrRow(Cursor cursor) {
|
||||
return getRowType(cursor) == ROW_TYPE_MAILBOX;
|
||||
/**
|
||||
* Returns {@code true} if the current row is a mailbox.
|
||||
* ({@link #ROW_TYPE_MAILBOX}, {@link #ROW_TYPE_CURMAILBOX} and {@link #ROW_TYPE_SUBMAILBOX})
|
||||
*/
|
||||
private static boolean isMailboxRow(Cursor cursor) {
|
||||
return !(isAccountRow(cursor) || isHeaderRow(cursor));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user