public void onItemSelected(AdapterView<?> parentView, View selectedItemView, final int position, long id) {
Object selectedItem = tblSpinner.getSelectedItem();
if (!(selectedItem instanceof StatesDbViewer)) {
return;
}
<BUG>mTableSelected = (StatesDbViewer) selectedItem;
switch (position) {</BUG>
case 0:
setListAdapter(new BaseStationAdapter(getActivity(), realm.allObjects(BaseTransceiverStation.class), true));
break;

public void onItemSelected(AdapterView<?> parentView, View selectedItemView, final int position, long id) {
Object selectedItem = tblSpinner.getSelectedItem();
if (!(selectedItem instanceof StatesDbViewer)) {
return;
}
mTableSelected = (StatesDbViewer) selectedItem;
realm.refresh();
switch (position) {
case 0:
setListAdapter(new BaseStationAdapter(getActivity(), realm.allObjects(BaseTransceiverStation.class), true));
break;
