Skip to content

Commit

Permalink
Make R.string.toast_shiftmode translateable
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduytran0 committed Sep 11, 2020
1 parent f85860f commit 6b834de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/net/kdt/pojavlaunch/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public boolean onNavigationItemSelected(MenuItem menuItem) {
case R.id.nav_shiftmodechg:
isShiftModeClick = !isShiftModeClick;
// shiftButton.setOnTouchListener(isShiftModeClick ? null : MainActivity.this);
Toast.makeText(MainActivity.this, getString(R.string.toast_shiftmode) + " " + getString(isShiftModeClick ? R.string.toast_shiftmode_toggle : R.string.toast_shiftmode_hold), Toast.LENGTH_SHORT).show();
Toast.makeText(MainActivity.this, getString(R.string.toast_shiftmode, getString(isShiftModeClick ? R.string.toast_shiftmode_toggle : R.string.toast_shiftmode_hold)), Toast.LENGTH_SHORT).show();
break;
}
//Toast.makeText(MainActivity.this, menuItem.getTitle() + ":" + menuItem.getItemId(), Toast.LENGTH_SHORT).show();
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<string name="toast_permission_denied">The read/write to storage permission is required!</string>
<string name="toast_login_error">Something went wrong after login. Please feedback to the developer.\nError: %s</string>
<string name="toast_optifine_success">Install successful</string>
<string name="toast_shiftmode">Shift (sneak) button mode changed to</string>
<string name="toast_shiftmode">Shift (sneak) button mode changed to %s</string>
<string name="toast_shiftmode_hold">Hold mode</string>
<string name="toast_shiftmode_toggle">Click toggle mode</string>
<!--
Expand Down

0 comments on commit 6b834de

Please sign in to comment.