From 99a4a0a22f7537e90b461df95094528227a906a2 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Tue, 29 Dec 2020 07:07:53 +0100 Subject: [PATCH] Remove comment post confirmation. Fix resources build error. --- .../ui/channel/ChannelCommentsFragment.java | 16 +--------------- .../browser/ui/findcontent/FileViewFragment.java | 16 +--------------- app/src/main/res/values/strings.xml | 6 ++++-- 3 files changed, 6 insertions(+), 32 deletions(-) diff --git a/app/src/main/java/io/lbry/browser/ui/channel/ChannelCommentsFragment.java b/app/src/main/java/io/lbry/browser/ui/channel/ChannelCommentsFragment.java index ce6dc6c3..c32d0f05 100644 --- a/app/src/main/java/io/lbry/browser/ui/channel/ChannelCommentsFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/channel/ChannelCommentsFragment.java @@ -441,21 +441,7 @@ public class ChannelCommentsFragment extends Fragment implements SdkStatusListen return; } - Context context = getContext(); - if (context != null) { - String titleText = getResources().getString(R.string.comment_confirm_post); - String confirmText = getResources().getString(R.string.confirm_post_comment); - AlertDialog.Builder builder = new AlertDialog.Builder(context). - setTitle(titleText). - setMessage(confirmText) - .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialogInterface, int i) { - postComment(); - } - }).setNegativeButton(R.string.no, null); - builder.show(); - } + postComment(); } private void updatePostAsChannel(Claim channel) { diff --git a/app/src/main/java/io/lbry/browser/ui/findcontent/FileViewFragment.java b/app/src/main/java/io/lbry/browser/ui/findcontent/FileViewFragment.java index 3c52114b..a586e748 100644 --- a/app/src/main/java/io/lbry/browser/ui/findcontent/FileViewFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/findcontent/FileViewFragment.java @@ -3086,21 +3086,7 @@ public class FileViewFragment extends BaseFragment implements return; } - Context context = getContext(); - if (context != null) { - String titleText = getResources().getString(R.string.comment_confirm_post); - String confirmText = getResources().getString(R.string.confirm_post_comment); - AlertDialog.Builder builder = new AlertDialog.Builder(context). - setTitle(titleText). - setMessage(confirmText) - .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialogInterface, int i) { - postComment(); - } - }).setNegativeButton(R.string.no, null); - builder.show(); - } + postComment(); } private void updatePostAsChannel(Claim channel) { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c900a781..1d64448f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -88,8 +88,6 @@ Please enter a comment to post. Please select a channel to post your comment as. Post - Confirm your comment - This will post your comment Your comment was successfully posted. Please select a channel to repost on. Reply @@ -103,6 +101,10 @@ This will purchase "%1$s" for %2$s credit This will purchase "%1$s" for %2$s credits + + This will post your comment with a tip of %1$s credit for %2$s + This will post your comment with a tip of %1$s credits for %2$s + There\'s nothing here yet.\nPlease check back later.