aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-13 04:36:36 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-13 04:36:36 +0000
commitb856f5baeb3a6353009c3362d07bd4363bacc152 (patch)
tree00c0309c5143a6542525ce49dca5951c78fa5230 /app/src/main/java/ml
parentf7361b9518419d92cc56ece7fe72995c7014f1e4 (diff)
downloadinfinity-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 'app/src/main/java/ml')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java1
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java2
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;
}