Commit 9a3c58aa authored by Craig Earley's avatar Craig Earley
Browse files

adds initial population of sector dropdown, modeled after site dropdown

parent ccd58ac9
......@@ -486,13 +486,19 @@ public class SensorSampleActivity extends AppCompatActivity {
siteList = db.getSites(null);
} else {
siteList.clear();
}
final DropdownListAdapter siteAdapter = new DropdownListAdapter(this);
siteAdapter.addItems(siteList);
siteSpinner.setAdapter(siteAdapter);
if (remote_db){
site = ((Pair<String, String>) siteAdapter.getItem(0)).first;
sectorList = db.getSectors(site);
} else {
sectorList.clear();
}
final DropdownListAdapter sectorAdapter = new DropdownListAdapter(this);
sectorAdapter.addItems(sectorList);
sectorSpinner.setAdapter(sectorAdapter);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment