Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 909af45c authored by Antoan Angelov's avatar Antoan Angelov Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11894160

Change-Id: I94e13a55fc5923ed0272524e2746bd1f2acc2144
parents e0624684 acfac749
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);