mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-22 11:02:35 +01:00
Use custom cancel string everywhere
to fix missing somali translation for android.R.string.cancel
This commit is contained in:
parent
a4742ad9e9
commit
f8caed139a
@ -864,7 +864,7 @@ public class DownloadDialog extends DialogFragment
|
|||||||
final AlertDialog.Builder askDialog = new AlertDialog.Builder(context)
|
final AlertDialog.Builder askDialog = new AlertDialog.Builder(context)
|
||||||
.setTitle(R.string.download_dialog_title)
|
.setTitle(R.string.download_dialog_title)
|
||||||
.setMessage(msgBody)
|
.setMessage(msgBody)
|
||||||
.setNegativeButton(android.R.string.cancel, null);
|
.setNegativeButton(R.string.cancel, null);
|
||||||
final StoredFileHelper finalStorage = storage;
|
final StoredFileHelper finalStorage = storage;
|
||||||
|
|
||||||
|
|
||||||
|
@ -2080,7 +2080,7 @@ public final class VideoDetailFragment
|
|||||||
private void showClearingQueueConfirmation(final Runnable onAllow) {
|
private void showClearingQueueConfirmation(final Runnable onAllow) {
|
||||||
new AlertDialog.Builder(activity)
|
new AlertDialog.Builder(activity)
|
||||||
.setTitle(R.string.clear_queue_confirmation_description)
|
.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) -> {
|
.setPositiveButton(android.R.string.yes, (dialog, which) -> {
|
||||||
onAllow.run();
|
onAllow.run();
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
@ -2096,7 +2096,7 @@ public final class VideoDetailFragment
|
|||||||
resolutions[i] = sortedVideoStreams.get(i).getResolution();
|
resolutions[i] = sortedVideoStreams.get(i).getResolution();
|
||||||
}
|
}
|
||||||
final AlertDialog.Builder builder = new AlertDialog.Builder(activity)
|
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) ->
|
.setNeutralButton(R.string.open_in_browser, (dialog, i) ->
|
||||||
ShareUtils.openUrlInBrowser(requireActivity(), url)
|
ShareUtils.openUrlInBrowser(requireActivity(), url)
|
||||||
);
|
);
|
||||||
|
@ -205,7 +205,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_toStartOf="@+id/confirm_button"
|
android:layout_toStartOf="@+id/confirm_button"
|
||||||
android:text="@android:string/cancel" />
|
android:text="@string/cancel" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/confirm_button"
|
android:id="@+id/confirm_button"
|
||||||
|
Loading…
Reference in New Issue
Block a user