Avoids to refresh some tabs when showing account
This commit is contained in:
parent
a541449a98
commit
6f81606b20
|
@ -199,6 +199,7 @@ public class ShowAccountActivity extends AppCompatActivity implements OnPostActi
|
|||
tabLayout.addTab(tabLayout.newTab().setText(getString(R.string.followers)));
|
||||
|
||||
mPager = findViewById(R.id.account_viewpager);
|
||||
mPager.setOffscreenPageLimit(3);
|
||||
PagerAdapter mPagerAdapter = new ScreenSlidePagerAdapter(getSupportFragmentManager());
|
||||
mPager.setAdapter(mPagerAdapter);
|
||||
|
||||
|
|
Loading…
Reference in New Issue