From b5c9e98ec902a062b947c1ca58d9c41f16dcdaa0 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 8 Aug 2019 08:57:43 +0800 Subject: Fixed ViewPager adapter was initialized twice in ViewUserDetailActivity and it caused eventbus registered twice to PostFragment. --- .../ml/docilealligator/infinityforreddit/ViewUserDetailActivity.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/ViewUserDetailActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/ViewUserDetailActivity.java index fc5f7264..bf90baf0 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/ViewUserDetailActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/ViewUserDetailActivity.java @@ -117,8 +117,6 @@ public class ViewUserDetailActivity extends AppCompatActivity { } } - getCurrentAccountAndInitializeViewPager(); - params = (AppBarLayout.LayoutParams) collapsingToolbarLayout.getLayoutParams(); //Get status bar height -- cgit v1.2.3