diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-08-25 12:38:31 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-08-25 12:38:31 +0000 |
commit | e301f730247b061438773a9c7cadb0b366c07c0b (patch) | |
tree | 964093d548b35b9d7e1ef96119107cbd893c234f /app | |
parent | fffc5b9eb4679f08bc6e01aaff75de7ca7afb877 (diff) | |
download | infinity-for-reddit-e301f730247b061438773a9c7cadb0b366c07c0b.tar infinity-for-reddit-e301f730247b061438773a9c7cadb0b366c07c0b.tar.gz infinity-for-reddit-e301f730247b061438773a9c7cadb0b366c07c0b.tar.bz2 infinity-for-reddit-e301f730247b061438773a9c7cadb0b366c07c0b.tar.lz infinity-for-reddit-e301f730247b061438773a9c7cadb0b366c07c0b.tar.xz infinity-for-reddit-e301f730247b061438773a9c7cadb0b366c07c0b.tar.zst infinity-for-reddit-e301f730247b061438773a9c7cadb0b366c07c0b.zip |
Set a null OnClickListener to the search panel card view in ViewPostDetailActivity.
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java | 7 |
1 files changed, 5 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 0f2c42e5..ae3538b1 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewPostDetailActivity.java @@ -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) { |