mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Fix crash when deleting all messages in a thread
Fixes issue 4772
This commit is contained in:
parent
99e7d5a692
commit
3f84bb54f2
@ -2979,13 +2979,16 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (mIsThreadDisplay) {
|
if (mIsThreadDisplay) {
|
||||||
cursor.moveToFirst();
|
if (cursor.moveToFirst()) {
|
||||||
mTitle = cursor.getString(SUBJECT_COLUMN);
|
mTitle = cursor.getString(SUBJECT_COLUMN);
|
||||||
mTitle = Utility.stripSubject(mTitle);
|
mTitle = Utility.stripSubject(mTitle);
|
||||||
if (StringUtils.isNullOrEmpty(mTitle)) {
|
if (StringUtils.isNullOrEmpty(mTitle)) {
|
||||||
mTitle = getString(R.string.general_no_subject);
|
mTitle = getString(R.string.general_no_subject);
|
||||||
|
}
|
||||||
|
refreshTitle();
|
||||||
|
} else {
|
||||||
|
//TODO: empty thread view -> return to full message list
|
||||||
}
|
}
|
||||||
refreshTitle();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanupSelected(cursor);
|
cleanupSelected(cursor);
|
||||||
|
Loading…
Reference in New Issue
Block a user