Loading src/com/android/launcher3/touch/LandscapePagedViewHandler.java +9 −5 Original line number Diff line number Diff line Loading @@ -543,15 +543,19 @@ public class LandscapePagedViewHandler implements PagedOrientationHandler { secondarySnapshotWidth = parentWidth; secondarySnapshotHeight = totalThumbnailHeight - primarySnapshotHeight - dividerBar; secondarySnapshot.setTranslationY(0); primarySnapshot.setTranslationY(secondarySnapshotHeight + spaceAboveSnapshot + dividerBar); int translationY = primarySnapshotHeight + spaceAboveSnapshot + dividerBar; primarySnapshot.setTranslationY(spaceAboveSnapshot); secondarySnapshot.setTranslationY(translationY - spaceAboveSnapshot); primarySnapshot.measure( View.MeasureSpec.makeMeasureSpec(primarySnapshotWidth, View.MeasureSpec.EXACTLY), View.MeasureSpec.makeMeasureSpec(primarySnapshotHeight, View.MeasureSpec.EXACTLY)); View.MeasureSpec.makeMeasureSpec(primarySnapshotHeight, View.MeasureSpec.EXACTLY) ); secondarySnapshot.measure( View.MeasureSpec.makeMeasureSpec(secondarySnapshotWidth, View.MeasureSpec.EXACTLY), View.MeasureSpec.makeMeasureSpec(secondarySnapshotHeight, View.MeasureSpec.EXACTLY)); View.MeasureSpec.makeMeasureSpec(secondarySnapshotHeight, View.MeasureSpec.EXACTLY) ); } @Override Loading src/com/android/launcher3/touch/PortraitPagedViewHandler.java +2 −1 Original line number Diff line number Diff line Loading @@ -644,11 +644,12 @@ public class PortraitPagedViewHandler implements PagedOrientationHandler { secondarySnapshotHeight = totalThumbnailHeight; secondarySnapshotWidth = parentWidth - primarySnapshotWidth - scaledDividerBar; int translationX = primarySnapshotWidth + scaledDividerBar; if (isRtl) { int translationX = secondarySnapshotWidth + scaledDividerBar; primarySnapshot.setTranslationX(-translationX); secondarySnapshot.setTranslationX(0); } else { int translationX = primarySnapshotWidth + scaledDividerBar; secondarySnapshot.setTranslationX(translationX); primarySnapshot.setTranslationX(0); } Loading src/com/android/launcher3/touch/SeascapePagedViewHandler.java +5 −3 Original line number Diff line number Diff line Loading @@ -343,13 +343,15 @@ public class SeascapePagedViewHandler extends LandscapePagedViewHandler { secondarySnapshotHeight = totalThumbnailHeight - primarySnapshotHeight - dividerBar; secondarySnapshot.setTranslationY(0); primarySnapshot.setTranslationY(secondarySnapshotHeight + spaceAboveSnapshot + dividerBar); primarySnapshot.measure( View.MeasureSpec.makeMeasureSpec(primarySnapshotWidth, View.MeasureSpec.EXACTLY), View.MeasureSpec.makeMeasureSpec(primarySnapshotHeight, View.MeasureSpec.EXACTLY)); View.MeasureSpec.makeMeasureSpec(primarySnapshotHeight, View.MeasureSpec.EXACTLY) ); secondarySnapshot.measure( View.MeasureSpec.makeMeasureSpec(secondarySnapshotWidth, View.MeasureSpec.EXACTLY), View.MeasureSpec.makeMeasureSpec(secondarySnapshotHeight, View.MeasureSpec.EXACTLY)); View.MeasureSpec.makeMeasureSpec(secondarySnapshotHeight, View.MeasureSpec.EXACTLY) ); } /* ---------- The following are only used by TaskViewTouchHandler. ---------- */ Loading Loading
src/com/android/launcher3/touch/LandscapePagedViewHandler.java +9 −5 Original line number Diff line number Diff line Loading @@ -543,15 +543,19 @@ public class LandscapePagedViewHandler implements PagedOrientationHandler { secondarySnapshotWidth = parentWidth; secondarySnapshotHeight = totalThumbnailHeight - primarySnapshotHeight - dividerBar; secondarySnapshot.setTranslationY(0); primarySnapshot.setTranslationY(secondarySnapshotHeight + spaceAboveSnapshot + dividerBar); int translationY = primarySnapshotHeight + spaceAboveSnapshot + dividerBar; primarySnapshot.setTranslationY(spaceAboveSnapshot); secondarySnapshot.setTranslationY(translationY - spaceAboveSnapshot); primarySnapshot.measure( View.MeasureSpec.makeMeasureSpec(primarySnapshotWidth, View.MeasureSpec.EXACTLY), View.MeasureSpec.makeMeasureSpec(primarySnapshotHeight, View.MeasureSpec.EXACTLY)); View.MeasureSpec.makeMeasureSpec(primarySnapshotHeight, View.MeasureSpec.EXACTLY) ); secondarySnapshot.measure( View.MeasureSpec.makeMeasureSpec(secondarySnapshotWidth, View.MeasureSpec.EXACTLY), View.MeasureSpec.makeMeasureSpec(secondarySnapshotHeight, View.MeasureSpec.EXACTLY)); View.MeasureSpec.makeMeasureSpec(secondarySnapshotHeight, View.MeasureSpec.EXACTLY) ); } @Override Loading
src/com/android/launcher3/touch/PortraitPagedViewHandler.java +2 −1 Original line number Diff line number Diff line Loading @@ -644,11 +644,12 @@ public class PortraitPagedViewHandler implements PagedOrientationHandler { secondarySnapshotHeight = totalThumbnailHeight; secondarySnapshotWidth = parentWidth - primarySnapshotWidth - scaledDividerBar; int translationX = primarySnapshotWidth + scaledDividerBar; if (isRtl) { int translationX = secondarySnapshotWidth + scaledDividerBar; primarySnapshot.setTranslationX(-translationX); secondarySnapshot.setTranslationX(0); } else { int translationX = primarySnapshotWidth + scaledDividerBar; secondarySnapshot.setTranslationX(translationX); primarySnapshot.setTranslationX(0); } Loading
src/com/android/launcher3/touch/SeascapePagedViewHandler.java +5 −3 Original line number Diff line number Diff line Loading @@ -343,13 +343,15 @@ public class SeascapePagedViewHandler extends LandscapePagedViewHandler { secondarySnapshotHeight = totalThumbnailHeight - primarySnapshotHeight - dividerBar; secondarySnapshot.setTranslationY(0); primarySnapshot.setTranslationY(secondarySnapshotHeight + spaceAboveSnapshot + dividerBar); primarySnapshot.measure( View.MeasureSpec.makeMeasureSpec(primarySnapshotWidth, View.MeasureSpec.EXACTLY), View.MeasureSpec.makeMeasureSpec(primarySnapshotHeight, View.MeasureSpec.EXACTLY)); View.MeasureSpec.makeMeasureSpec(primarySnapshotHeight, View.MeasureSpec.EXACTLY) ); secondarySnapshot.measure( View.MeasureSpec.makeMeasureSpec(secondarySnapshotWidth, View.MeasureSpec.EXACTLY), View.MeasureSpec.makeMeasureSpec(secondarySnapshotHeight, View.MeasureSpec.EXACTLY)); View.MeasureSpec.makeMeasureSpec(secondarySnapshotHeight, View.MeasureSpec.EXACTLY) ); } /* ---------- The following are only used by TaskViewTouchHandler. ---------- */ Loading