diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2022-12-03 22:14:40 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2022-12-03 22:14:40 +0000 |
commit | bc03d20845ac18e4aab850ee3ca04ffae65703e0 (patch) | |
tree | 7ca06c6fe92480cab7b62472f5562b17819e3e52 /app/src/main | |
parent | 1c81d3e0c9375d9b7d28ea521b16415028057c60 (diff) | |
download | infinity-for-reddit-bc03d20845ac18e4aab850ee3ca04ffae65703e0.tar infinity-for-reddit-bc03d20845ac18e4aab850ee3ca04ffae65703e0.tar.gz infinity-for-reddit-bc03d20845ac18e4aab850ee3ca04ffae65703e0.tar.bz2 infinity-for-reddit-bc03d20845ac18e4aab850ee3ca04ffae65703e0.tar.lz infinity-for-reddit-bc03d20845ac18e4aab850ee3ca04ffae65703e0.tar.xz infinity-for-reddit-bc03d20845ac18e4aab850ee3ca04ffae65703e0.tar.zst infinity-for-reddit-bc03d20845ac18e4aab850ee3ca04ffae65703e0.zip |
Fix score shown inside CommentFullyCollapsedViewHolder even the score is hidden.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java | 2 | ||||
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java index 1b534a0c..a9a67f10 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java @@ -584,6 +584,8 @@ public class CommentsRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerVi Utils.getNVotes(mShowAbsoluteNumberOfVotes, comment.getScore() + comment.getVoteType()))); } else if (mHideTheNumberOfVotes) { ((CommentFullyCollapsedViewHolder) holder).scoreTextView.setText(mActivity.getString(R.string.vote)); + } else { + ((CommentFullyCollapsedViewHolder) holder).scoreTextView.setText(mActivity.getString(R.string.hidden)); } ((CommentFullyCollapsedViewHolder) holder).commentIndentationView.setShowOnlyOneDivider(mShowOnlyOneCommentLevelIndicator); ((CommentFullyCollapsedViewHolder) holder).commentIndentationView.setLevelAndColors(comment.getDepth(), verticalBlockColors); diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java index 08e759a8..fc3fc620 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/Utils.java @@ -333,13 +333,6 @@ public final class Utils { } public static void hideKeyboard(Activity activity) { - /*if (activity.getCurrentFocus() == null || !(activity.getCurrentFocus() instanceof EditText)) { - editText.requestFocus(); - } - InputMethodManager imm = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE); - imm.hideSoftInputFromWindow(editText.getWindowToken(), 0); - activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);*/ - InputMethodManager inputMethodManager = (InputMethodManager) activity.getSystemService(Activity.INPUT_METHOD_SERVICE); if (inputMethodManager != null && activity.getCurrentFocus() != null) { inputMethodManager.hideSoftInputFromWindow(activity.getCurrentFocus().getWindowToken(), 0); |