Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
fixed double spacing (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
igormiguell authored Jul 10, 2024
1 parent b7f8ae1 commit 0c9f80b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ public void showRestartDialog(boolean isRestartSystem, String appLabel, String[]
String isSystem = getResources().getString(R.string.restart_app_desc, appLabel);
String isOther = getResources().getString(R.string.restart_app_desc, " " + appLabel + " ");

isSystem = isSystem.replace(" ", " ");
isOther = isOther.replace(" ", " ");

isSystem = isSystem.replaceAll("^\\s+|\\s+$", "");
isOther = isOther.replaceAll("^\\s+|\\s+$", "");

new AlertDialog.Builder(this)
.setCancelable(false)
.setTitle(getResources().getString(R.string.soft_reboot) + " " + appLabel)
Expand Down

0 comments on commit 0c9f80b

Please sign in to comment.