Set a null OnClickListener to the search panel card view in ViewPostDetailActivity.

This commit is contained in:
Alex Ning 2021-08-25 20:38:31 +08:00
parent fffc5b9eb4
commit e301f73024

View File

@ -1,5 +1,7 @@
package ml.docilealligator.infinityforreddit.activities;
import static ml.docilealligator.infinityforreddit.activities.CommentActivity.RETURN_EXTRA_COMMENT_DATA_KEY;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
@ -67,8 +69,6 @@ import ml.docilealligator.infinityforreddit.post.Post;
import ml.docilealligator.infinityforreddit.utils.SharedPreferencesUtils;
import retrofit2.Retrofit;
import static ml.docilealligator.infinityforreddit.activities.CommentActivity.RETURN_EXTRA_COMMENT_DATA_KEY;
public class ViewPostDetailActivity extends BaseActivity implements SortTypeSelectionCallback, ActivityToolbarInterface {
public static final String EXTRA_POST_DATA = "EPD";
@ -314,6 +314,9 @@ public class ViewPostDetailActivity extends BaseActivity implements SortTypeSele
if (savedInstanceState == null) {
viewPager2.setCurrentItem(getIntent().getIntExtra(EXTRA_POST_LIST_POSITION, 0), false);
}
searchPanelMaterialCardView.setOnClickListener(null);
nextResultImageView.setOnClickListener(view -> {
ViewPostDetailFragment fragment = sectionsPagerAdapter.getCurrentFragment();
if (fragment != null) {