Clear search query in the search panel when closing it in ViewPostDetailActivity.

This commit is contained in:
Alex Ning 2021-07-13 12:36:36 +08:00
parent f7361b9518
commit b856f5baeb
2 changed files with 1 additions and 2 deletions

View File

@ -430,6 +430,7 @@ public class ViewPostDetailActivity extends BaseActivity implements SortTypeSele
return false; return false;
} else { } else {
searchPanelMaterialCardView.setVisibility(View.GONE); searchPanelMaterialCardView.setVisibility(View.GONE);
searchTextInputEditText.setText("");
return true; return true;
} }
} }

View File

@ -13,7 +13,6 @@ import android.text.Spanned;
import android.text.TextPaint; import android.text.TextPaint;
import android.text.style.ClickableSpan; import android.text.style.ClickableSpan;
import android.text.util.Linkify; import android.text.util.Linkify;
import android.util.Log;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
@ -1075,7 +1074,6 @@ public class CommentsRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerVi
@Override @Override
public int getItemCount() { public int getItemCount() {
if (isInitiallyLoading || isInitiallyLoadingFailed || mVisibleComments.size() == 0) { if (isInitiallyLoading || isInitiallyLoadingFailed || mVisibleComments.size() == 0) {
Log.i("adfasdf", "sds");
return 1; return 1;
} }