Merge "Re-setup viewpager on configuration change for RTL languages" into rvc-dev am: acfac74964
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11894160 Change-Id: I94e13a55fc5923ed0272524e2746bd1f2acc2144
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