Exemplo n.º 1
0
  private Cursor getCursor(int type) {

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