|
|
|
|
203
|
}
|
203
|
}
|
204
|
CamotionFragment fragment;
|
204
|
CamotionFragment fragment;
|
205
|
if (view == R.id.nav_cameras) {
|
205
|
if (view == R.id.nav_cameras) {
|
|
|
206
|
+ _navigationView.getMenu().findItem(R.id.nav_cameras).setChecked(true);
|
206
|
fragment = new CamerasFragment();
|
207
|
fragment = new CamerasFragment();
|
207
|
} else if (view == R.id.nav_commands) {
|
208
|
} else if (view == R.id.nav_commands) {
|
|
|
209
|
+ _navigationView.getMenu().findItem(R.id.nav_commands).setChecked(true);
|
208
|
fragment = new CommandsFragment();
|
210
|
fragment = new CommandsFragment();
|
209
|
} else if (view == R.id.nav_sensors) {
|
211
|
} else if (view == R.id.nav_sensors) {
|
|
|
212
|
+ _navigationView.getMenu().findItem(R.id.nav_sensors).setChecked(true);
|
210
|
fragment = new SensorsFragment();
|
213
|
fragment = new SensorsFragment();
|
211
|
} /*else if (view == -1) {
|
214
|
} /*else if (view == -1) {
|
212
|
fragment = new DefaultFragment();
|
215
|
fragment = new DefaultFragment();
|