@@ -668,9 +668,7 @@ private Callable<Cursor> getSteamCursorGenerator() {
668
668
Callable <Cursor > steamCursorGenerator = new Callable <Cursor >() {
669
669
@ Override
670
670
public Cursor call () throws Exception {
671
- int pointer = app .getPointer ();
672
- String query = "SELECT s.id as _id, s.name, s.color, count(case when m.id > " + pointer + " or m." + Message .MESSAGE_READ_FIELD
673
- + " = 0 then 1 end) as " + ExpandableStreamDrawerAdapter .UNREAD_TABLE_NAME
671
+ String query = "SELECT s.id as _id, s.name, s.color"
674
672
+ " FROM streams as s LEFT JOIN messages as m ON s.id=m.stream " ;
675
673
String selectArg = null ;
676
674
if (!etSearchStream .getText ().toString ().equals ("" ) && !etSearchStream .getText ().toString ().isEmpty ()) {
@@ -1192,11 +1190,11 @@ public void onAnimationRepeat(Animator animator) {
1192
1190
*/
1193
1191
private void setupListViewAdapter () {
1194
1192
streamsDrawerAdapter = null ;
1195
- String [] groupFrom = {Stream .NAME_FIELD , Stream .COLOR_FIELD , ExpandableStreamDrawerAdapter . UNREAD_TABLE_NAME };
1196
- int [] groupTo = {R .id .name , R .id .stream_dot , R . id . unread_group };
1193
+ String [] groupFrom = {Stream .NAME_FIELD , Stream .COLOR_FIELD };
1194
+ int [] groupTo = {R .id .name , R .id .stream_dot };
1197
1195
// Comparison of data elements and View
1198
- String [] childFrom = {Message .SUBJECT_FIELD , ExpandableStreamDrawerAdapter . UNREAD_TABLE_NAME };
1199
- int [] childTo = {R .id .name_child , R . id . unread_child };
1196
+ String [] childFrom = {Message .SUBJECT_FIELD };
1197
+ int [] childTo = {R .id .name_child };
1200
1198
final ExpandableListView streamsDrawer = (ExpandableListView ) findViewById (R .id .streams_drawer );
1201
1199
streamsDrawer .setGroupIndicator (null );
1202
1200
try {
0 commit comments