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

Commit 644a2b9b authored by Sunny Shao's avatar Sunny Shao
Browse files

Fix overlapped problem in SuW two panes mode

- The previous preview page will overlap the right pane in RTL language.
- The root cause is the false value of the clipToPadding and
  clipChildren.
- Use the TTheme.DeviceDefault.Settings.

Fixes: 204955818
Test: manual test
Change-Id: I75c7f419cf93ebe9c4e9e3cb24835163a6b01e11
parent 17423d16
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1882,6 +1882,7 @@

        <activity
            android:name=".accessibility.AccessibilityScreenSizeForSetupWizardActivity"
            android:theme="@android:style/Theme.DeviceDefault.Settings"
            android:exported="false"/>

        <activity
+0 −4
Original line number Diff line number Diff line
@@ -109,10 +109,6 @@ public class PreviewPagerAdapter extends PagerAdapter {
        return (view == object);
    }

    FrameLayout[] getPreviewFrames() {
        return mPreviewFrames;
    }

    boolean isAnimating() {
        return mAnimationCounter > 0;
    }
+0 −6
Original line number Diff line number Diff line
@@ -264,12 +264,6 @@ public abstract class PreviewSeekBarPreferenceFragment extends SettingsPreferenc
        @Override
        public void onPageSelected(int position) {
            mPreviewPager.sendAccessibilityEvent(AccessibilityEvent.TYPE_ANNOUNCEMENT);
            // To avoid displaying previous page on the left side in SUW landscape mode for
            // large size.
            if (position > 0) {
                mPreviewPagerAdapter.getPreviewFrames()[position - 1].setVisibility(View.INVISIBLE);
            }
            mPreviewPagerAdapter.getPreviewFrames()[position].setVisibility(View.VISIBLE);
        }
    };