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

Commit 57d9e085 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...

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

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

Change-Id: I115a0bb111d1943da50c6bf529953a05b7f03609
parents 48babc1f 909af45c
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);