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
This commit is contained in:
Sunny Shao
2021-11-20 17:58:23 +08:00
parent 17423d1682
commit 644a2b9bc6
3 changed files with 1 additions and 10 deletions

View File

@@ -1882,6 +1882,7 @@
<activity <activity
android:name=".accessibility.AccessibilityScreenSizeForSetupWizardActivity" android:name=".accessibility.AccessibilityScreenSizeForSetupWizardActivity"
android:theme="@android:style/Theme.DeviceDefault.Settings"
android:exported="false"/> android:exported="false"/>
<activity <activity

View File

@@ -109,10 +109,6 @@ public class PreviewPagerAdapter extends PagerAdapter {
return (view == object); return (view == object);
} }
FrameLayout[] getPreviewFrames() {
return mPreviewFrames;
}
boolean isAnimating() { boolean isAnimating() {
return mAnimationCounter > 0; return mAnimationCounter > 0;
} }

View File

@@ -264,12 +264,6 @@ public abstract class PreviewSeekBarPreferenceFragment extends SettingsPreferenc
@Override @Override
public void onPageSelected(int position) { public void onPageSelected(int position) {
mPreviewPager.sendAccessibilityEvent(AccessibilityEvent.TYPE_ANNOUNCEMENT); 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);
} }
}; };