Example #1
0
  private Cursor getCursor(int type) {

    switch (type) {
      case MY_ALLIANCES:
        return dbHelper.getAlliances();
    }
    return null;
  }
Example #2
0
 public void refreshAdapter() {
   if (adapter != null) {
     switch (type) {
       case MY_ALLIANCES:
         adapter.changeCursor(dbHelper.getAlliances());
         break;
     }
   }
 }