diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-07-13 04:36:36 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-07-13 04:36:36 +0000 |
commit | b856f5baeb3a6353009c3362d07bd4363bacc152 (patch) | |
tree | 00c0309c5143a6542525ce49dca5951c78fa5230 /app/src | |
parent | f7361b9518419d92cc56ece7fe72995c7014f1e4 (diff) | |
download | infinity-for-reddit-b856f5baeb3a6353009c3362d07bd4363bacc152.tar infinity-for-reddit-b856f5baeb3a6353009c3362d07bd4363bacc152.tar.gz infinity-for-reddit-b856f5baeb3a6353009c3362d07bd4363bacc152.tar.bz2 infinity-for-reddit-b856f5baeb3a6353009c3362d07bd4363bacc152.tar.lz infinity-for-reddit-b856f5baeb3a6353009c3362d07bd4363bacc152.tar.xz infinity-for-reddit-b856f5baeb3a6353009c3362d07bd4363bacc152.tar.zst infinity-for-reddit-b856f5baeb3a6353009c3362d07bd4363bacc152.zip |
Clear search query in the search panel when closing it in ViewPostDetailActivity.
Diffstat (limited to '')
2 files changed, 1 insertions, 2 deletions
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<RecyclerVi @Override public int getItemCount() { if (isInitiallyLoading || isInitiallyLoadingFailed || mVisibleComments.size() == 0) { - Log.i("adfasdf", "sds"); return 1; } |