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:
@@ -1882,6 +1882,7 @@
|
||||
|
||||
<activity
|
||||
android:name=".accessibility.AccessibilityScreenSizeForSetupWizardActivity"
|
||||
android:theme="@android:style/Theme.DeviceDefault.Settings"
|
||||
android:exported="false"/>
|
||||
|
||||
<activity
|
||||
|
@@ -109,10 +109,6 @@ public class PreviewPagerAdapter extends PagerAdapter {
|
||||
return (view == object);
|
||||
}
|
||||
|
||||
FrameLayout[] getPreviewFrames() {
|
||||
return mPreviewFrames;
|
||||
}
|
||||
|
||||
boolean isAnimating() {
|
||||
return mAnimationCounter > 0;
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user