private Cursor getCursor(int type) { switch (type) { case MY_ALLIANCES: return dbHelper.getAlliances(); } return null; }
public void refreshAdapter() { if (adapter != null) { switch (type) { case MY_ALLIANCES: adapter.changeCursor(dbHelper.getAlliances()); break; } } }