Skip to content

Commit

Permalink
show correct menuitem text after resuming activity
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Mar 24, 2024
1 parent 0b1f106 commit 7cb78d6
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1380,8 +1380,15 @@ public void onNothingSelected(AdapterView<?> parentView)
R.string.MainActivity_profile).withIcon(GoogleMaterial.Icon.gmd_face);
PrimaryDrawerItem item2 = new PrimaryDrawerItem().withIdentifier(2).withName(
R.string.MainActivity_settings).withIcon(GoogleMaterial.Icon.gmd_settings);
PrimaryDrawerItem item3 = new PrimaryDrawerItem().withIdentifier(3).withName(
R.string.MainActivity_manually_logged_out_false).withIcon(GoogleMaterial.Icon.gmd_refresh);
PrimaryDrawerItem item3;
if (manually_logged_out)
{
item3 = new PrimaryDrawerItem().withIdentifier(3).withName(R.string.MainActivity_manually_logged_out_true).withIcon(GoogleMaterial.Icon.gmd_refresh);
}
else
{
item3 = new PrimaryDrawerItem().withIdentifier(3).withName(R.string.MainActivity_manually_logged_out_false).withIcon(GoogleMaterial.Icon.gmd_refresh);
}
PrimaryDrawerItem item4 = new PrimaryDrawerItem().withIdentifier(4).withName(
R.string.MainActivity_maint).withIcon(GoogleMaterial.Icon.gmd_build);
PrimaryDrawerItem item5 = new PrimaryDrawerItem().withIdentifier(5).withName(
Expand Down

0 comments on commit 7cb78d6

Please sign in to comment.