Skip to content

Commit

Permalink
Fixes fossasia#2166 faq section of navigation drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
developer-nobita committed Oct 19, 2021
1 parent 9436720 commit 71dc7e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/io/pslab/activity/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private Fragment getHomeFragment() throws IOException {
return HomeFragment.newInstance(ScienceLabCommon.scienceLab.isConnected(), ScienceLabCommon.scienceLab.isDeviceFound());
case 5:
return AboutUsFragment.newInstance();
case 7:
case 8:
return FAQFragment.newInstance();
default:
return InstrumentsFragment.newInstance();
Expand Down Expand Up @@ -229,7 +229,7 @@ private void selectNavMenu() {
case 5:
navigationView.getMenu().getItem(navItemIndex).setChecked(true);
break;
case 7:
case 8:
navigationView.getMenu().getItem(navItemIndex).setChecked(true);
break;
default:
Expand Down Expand Up @@ -270,7 +270,7 @@ public boolean onNavigationItemSelected(@NonNull MenuItem item) {
}
break;
case R.id.nav_help_feedback:
navItemIndex = 7;
navItemIndex = 8;
CURRENT_TAG = TAG_FAQ;
break;
case R.id.nav_buy_pslab:
Expand Down

0 comments on commit 71dc7e6

Please sign in to comment.