From 2b0b7d93a8c759ed9cff5bd13d414c4e645d0111 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Wed, 7 Apr 2021 23:51:26 +0800 Subject: UI changes in comments. --- .../infinityforreddit/activities/LoginActivity.java | 1 + .../adapters/CommentAndPostRecyclerViewAdapter.java | 18 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'app/src/main/java/ml') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LoginActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LoginActivity.java index 21f49973..8bdc0528 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LoginActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LoginActivity.java @@ -231,6 +231,7 @@ public class LoginActivity extends BaseActivity { @Override public void onFailure(@NonNull Call call, @NonNull Throwable t) { Toast.makeText(LoginActivity.this, R.string.retrieve_token_error, Toast.LENGTH_SHORT).show(); + t.printStackTrace(); finish(); } }); diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentAndPostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentAndPostRecyclerViewAdapter.java index 13f9d07f..63c7f230 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentAndPostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentAndPostRecyclerViewAdapter.java @@ -1104,7 +1104,7 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter 0) { switch (comment.getDepth() % 7) { case 0: @@ -1137,7 +1137,7 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter 0) { switch (comment.getDepth() % 7) { case 0: @@ -1239,7 +1239,7 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter 0) { switch (placeholder.getDepth() % 7) { case 0: @@ -1281,7 +1281,7 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter hideToolbar(); - linearLayout.setOnLongClickListener(hideToolbarOnLongClickListener); + itemView.setOnLongClickListener(hideToolbarOnLongClickListener); commentMarkdownView.setOnLongClickListener(hideToolbarOnLongClickListener); commentTimeTextView.setOnLongClickListener(hideToolbarOnLongClickListener); } @@ -3781,7 +3781,7 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter hideToolbar(); - linearLayout.setOnClickListener(hideToolbarOnClickListener); + itemView.setOnClickListener(hideToolbarOnClickListener); commentTimeTextView.setOnClickListener(hideToolbarOnClickListener); } commentMarkdownView.setOnLongClickListener(view -> { -- cgit v1.2.3