Merge "Fix overlapped problem in SuW two panes mode" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cd8a01d2fd
@@ -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
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user