From 241054fd26a0a04433c3550420daa536e7b0093e Mon Sep 17 00:00:00 2001 From: ktprograms Date: Sat, 14 Aug 2021 15:38:57 +0800 Subject: [PATCH] Remove hardcoded string --- .../main/java/org/schabi/newpipe/util/StreamDialogEntry.java | 2 +- app/src/main/res/values/strings.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/util/StreamDialogEntry.java b/app/src/main/java/org/schabi/newpipe/util/StreamDialogEntry.java index 06edd4d07..978677083 100644 --- a/app/src/main/java/org/schabi/newpipe/util/StreamDialogEntry.java +++ b/app/src/main/java/org/schabi/newpipe/util/StreamDialogEntry.java @@ -52,7 +52,7 @@ public enum StreamDialogEntry { item.getUploaderName()); }, throwable -> Toast.makeText( fragment.getContext(), - "Error at Show Channel Details", + R.string.error_show_channel_details, Toast.LENGTH_SHORT ).show()); } else { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1fda1f5cb..00910eed0 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -755,4 +755,5 @@ Tablet mode On Off + Error at Show Channel Details \ No newline at end of file