Skip to content

Commit

Permalink
Use custom cancel string everywhere
Browse files Browse the repository at this point in the history
to fix missing somali translation for android.R.string.cancel
  • Loading branch information
Stypox committed Aug 4, 2021
1 parent a4742ad commit 0c1ee76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ private void checkSelectedDownload(final StoredDirectoryHelper mainStorage,
final AlertDialog.Builder askDialog = new AlertDialog.Builder(context)
.setTitle(R.string.download_dialog_title)
.setMessage(msgBody)
.setNegativeButton(android.R.string.cancel, null);
.setNegativeButton(R.string.cancel, null);
final StoredFileHelper finalStorage = storage;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,7 @@ && playerIsNotStopped()
private void showClearingQueueConfirmation(final Runnable onAllow) {
new AlertDialog.Builder(activity)
.setTitle(R.string.clear_queue_confirmation_description)
.setNegativeButton(android.R.string.cancel, null)
.setNegativeButton(R.string.cancel, null)
.setPositiveButton(android.R.string.yes, (dialog, which) -> {
onAllow.run();
dialog.dismiss();
Expand All @@ -2096,7 +2096,7 @@ private void showExternalPlaybackDialog() {
resolutions[i] = sortedVideoStreams.get(i).getResolution();
}
final AlertDialog.Builder builder = new AlertDialog.Builder(activity)
.setNegativeButton(android.R.string.cancel, null)
.setNegativeButton(R.string.cancel, null)
.setNeutralButton(R.string.open_in_browser, (dialog, i) ->
ShareUtils.openUrlInBrowser(requireActivity(), url)
);
Expand Down

0 comments on commit 0c1ee76

Please sign in to comment.