From b856f5baeb3a6353009c3362d07bd4363bacc152 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 13 Jul 2021 12:36:36 +0800 Subject: Clear search query in the search panel when closing it in ViewPostDetailActivity. --- .../infinityforreddit/activities/ViewPostDetailActivity.java | 1 + .../infinityforreddit/adapters/CommentsRecyclerViewAdapter.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'app/src') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java index e8b6fa85..0f2c42e5 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java @@ -430,6 +430,7 @@ public class ViewPostDetailActivity extends BaseActivity implements SortTypeSele return false; } else { searchPanelMaterialCardView.setVisibility(View.GONE); + searchTextInputEditText.setText(""); return true; } } 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 55b216a5..6b9d4f54 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java @@ -13,7 +13,6 @@ import android.text.Spanned; import android.text.TextPaint; import android.text.style.ClickableSpan; import android.text.util.Linkify; -import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -1075,7 +1074,6 @@ public class CommentsRecyclerViewAdapter extends RecyclerView.Adapter