Fixing small regressions from layout tweaks

am: 11439c5854

Change-Id: Id3d8510a7cff4eb54d6bf1d2fdba837199ed499f
This commit is contained in:
Winson
2016-07-20 22:16:30 +00:00
committed by android-build-merger
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -392,7 +392,7 @@ public class DeviceProfile {
// In portrait, we want the pages spaced such that there is no
// overhang of the previous / next page into the current page viewport.
// We assume symmetrical padding in portrait mode.
return Math.max(defaultPageSpacingPx, 2 * getWorkspacePadding(null).left);
return Math.max(defaultPageSpacingPx, getWorkspacePadding(null).left + 1);
}
}
@@ -148,7 +148,8 @@ public class PageIndicatorLineCaret extends PageIndicator {
super.onLayout(changed, left, top, right, bottom);
// Top/center align the caret in the page indicator space
int l = (right - left) / 2 - mCaretSizePx / 2;
getCaretDrawable().setBounds(l, mCaretWorkspaceOffsetPx, l + mCaretSizePx, mCaretSizePx);
getCaretDrawable().setBounds(l, mCaretWorkspaceOffsetPx, l + mCaretSizePx,
mCaretWorkspaceOffsetPx + mCaretSizePx);
// The touch area is expanded below this view by #mTouchExtensionHeight
// which extends to the top of the hotseat.