mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-29 04:17:12 +01:00
Set a null OnClickListener to the search panel card view in ViewPostDetailActivity.
This commit is contained in:
parent
fffc5b9eb4
commit
e301f73024
@ -1,5 +1,7 @@
|
|||||||
package ml.docilealligator.infinityforreddit.activities;
|
package ml.docilealligator.infinityforreddit.activities;
|
||||||
|
|
||||||
|
import static ml.docilealligator.infinityforreddit.activities.CommentActivity.RETURN_EXTRA_COMMENT_DATA_KEY;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
@ -67,8 +69,6 @@ import ml.docilealligator.infinityforreddit.post.Post;
|
|||||||
import ml.docilealligator.infinityforreddit.utils.SharedPreferencesUtils;
|
import ml.docilealligator.infinityforreddit.utils.SharedPreferencesUtils;
|
||||||
import retrofit2.Retrofit;
|
import retrofit2.Retrofit;
|
||||||
|
|
||||||
import static ml.docilealligator.infinityforreddit.activities.CommentActivity.RETURN_EXTRA_COMMENT_DATA_KEY;
|
|
||||||
|
|
||||||
public class ViewPostDetailActivity extends BaseActivity implements SortTypeSelectionCallback, ActivityToolbarInterface {
|
public class ViewPostDetailActivity extends BaseActivity implements SortTypeSelectionCallback, ActivityToolbarInterface {
|
||||||
|
|
||||||
public static final String EXTRA_POST_DATA = "EPD";
|
public static final String EXTRA_POST_DATA = "EPD";
|
||||||
@ -314,6 +314,9 @@ public class ViewPostDetailActivity extends BaseActivity implements SortTypeSele
|
|||||||
if (savedInstanceState == null) {
|
if (savedInstanceState == null) {
|
||||||
viewPager2.setCurrentItem(getIntent().getIntExtra(EXTRA_POST_LIST_POSITION, 0), false);
|
viewPager2.setCurrentItem(getIntent().getIntExtra(EXTRA_POST_LIST_POSITION, 0), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
searchPanelMaterialCardView.setOnClickListener(null);
|
||||||
|
|
||||||
nextResultImageView.setOnClickListener(view -> {
|
nextResultImageView.setOnClickListener(view -> {
|
||||||
ViewPostDetailFragment fragment = sectionsPagerAdapter.getCurrentFragment();
|
ViewPostDetailFragment fragment = sectionsPagerAdapter.getCurrentFragment();
|
||||||
if (fragment != null) {
|
if (fragment != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user