Merge "Re-setup viewpager on configuration change for RTL languages" into rvc-dev am: acfac74964 am: 909af45cf0 am: 57d9e08518
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11894160 Change-Id: Ib79585b5e81eb59a3a5ba7f7d10f7672ee9aa632
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user