Exemplo n.º 1
0
 public void m5290a(Loader<Cursor> loader, Cursor cursor) {
   int i = 1;
   m5289b(8);
   if (cursor != null) {
     if (this.f2847d != null) {
       this.f2847d.setVisible(cursor.getCount() != 0);
     }
     if (cursor.isClosed()) {
       getLoaderManager().restartLoader(8800, null, this);
     } else if (loader.getId() == 8800) {
       int i2;
       if (cursor.moveToFirst()) {
         do {
           i2 = cursor.getInt(cursor.getColumnIndexOrThrow("unread_count")) > 0 ? 1 : 0;
           if (i2 != 0) {
             break;
           }
         } while (cursor.moveToNext());
       } else {
         i2 = 0;
       }
       EventBus a = EventBus.m12779a();
       if (i2 == 0) {
         i = 0;
       }
       a.m12795d(new HomeTabsBadgeUpdateEvent(3, i));
       this.f2849f.swapCursor(cursor);
     }
   }
   this.f2844a.setEmptyView(this.f2848e);
 }