Fixed ViewPager adapter was initialized twice in ViewUserDetailActivity and it caused eventbus registered twice to PostFragment.

This commit is contained in:
Alex Ning 2019-08-08 08:57:43 +08:00
parent 425bc857cf
commit b5c9e98ec9

View File

@ -117,8 +117,6 @@ public class ViewUserDetailActivity extends AppCompatActivity {
}
}
getCurrentAccountAndInitializeViewPager();
params = (AppBarLayout.LayoutParams) collapsingToolbarLayout.getLayoutParams();
//Get status bar height