Merge "Re-setup viewpager on configuration change for RTL languages" into rvc-dev

This commit is contained in:
Antoan Angelov
2020-06-17 15:00:51 +00:00
committed by Android (Google) Code Review

View File

@@ -1063,6 +1063,10 @@ public class ChooserActivity extends ResolverActivity implements
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
ViewPager viewPager = findViewById(R.id.profile_pager);
if (shouldShowTabs() && viewPager.isLayoutRtl()) {
mMultiProfilePagerAdapter.setupViewPager(viewPager);
}
mShouldDisplayLandscape = shouldDisplayLandscape(newConfig.orientation);
adjustPreviewWidth(newConfig.orientation, null);