am 8da91a69: Merge "Fix bug #7205072 Text inside popup window is too close to the edge" into jb-mr1-dev
* commit '8da91a699cefccb8d9abf2b72221bc8c1f1874fc': Fix bug #7205072 Text inside popup window is too close to the edge
This commit is contained in:
@@ -2773,14 +2773,14 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
|||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty(category = "padding")
|
@ViewDebug.ExportedProperty(category = "padding")
|
||||||
protected int mPaddingLeft;
|
protected int mPaddingLeft = UNDEFINED_PADDING;
|
||||||
/**
|
/**
|
||||||
* The right padding in pixels, that is the distance in pixels between the
|
* The right padding in pixels, that is the distance in pixels between the
|
||||||
* right edge of this view and the right edge of its content.
|
* right edge of this view and the right edge of its content.
|
||||||
* {@hide}
|
* {@hide}
|
||||||
*/
|
*/
|
||||||
@ViewDebug.ExportedProperty(category = "padding")
|
@ViewDebug.ExportedProperty(category = "padding")
|
||||||
protected int mPaddingRight;
|
protected int mPaddingRight = UNDEFINED_PADDING;
|
||||||
/**
|
/**
|
||||||
* The top padding in pixels, that is the distance in pixels between the
|
* The top padding in pixels, that is the distance in pixels between the
|
||||||
* top edge of this view and the top edge of its content.
|
* top edge of this view and the top edge of its content.
|
||||||
@@ -3620,9 +3620,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
|||||||
// (stored at this point in mPadding*)
|
// (stored at this point in mPadding*)
|
||||||
mUserPaddingLeftInitial = leftPadding >= 0 ? leftPadding : mPaddingLeft;
|
mUserPaddingLeftInitial = leftPadding >= 0 ? leftPadding : mPaddingLeft;
|
||||||
mUserPaddingRightInitial = rightPadding >= 0 ? rightPadding : mPaddingRight;
|
mUserPaddingRightInitial = rightPadding >= 0 ? rightPadding : mPaddingRight;
|
||||||
internalSetPadding(mUserPaddingLeftInitial,
|
internalSetPadding(
|
||||||
|
mUserPaddingLeftInitial != UNDEFINED_PADDING ? mUserPaddingLeftInitial : 0,
|
||||||
topPadding >= 0 ? topPadding : mPaddingTop,
|
topPadding >= 0 ? topPadding : mPaddingTop,
|
||||||
mUserPaddingRightInitial,
|
mUserPaddingRightInitial != UNDEFINED_PADDING ? mUserPaddingRightInitial : 0,
|
||||||
bottomPadding >= 0 ? bottomPadding : mPaddingBottom);
|
bottomPadding >= 0 ? bottomPadding : mPaddingBottom);
|
||||||
|
|
||||||
if (viewFlagMasks != 0) {
|
if (viewFlagMasks != 0) {
|
||||||
@@ -11597,8 +11598,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
|||||||
mUserPaddingStart != UNDEFINED_PADDING) {
|
mUserPaddingStart != UNDEFINED_PADDING) {
|
||||||
mUserPaddingLeft = mUserPaddingStart;
|
mUserPaddingLeft = mUserPaddingStart;
|
||||||
}
|
}
|
||||||
if (mUserPaddingRightInitial == UNDEFINED_PADDING
|
if (mUserPaddingRightInitial == UNDEFINED_PADDING &&
|
||||||
&& mUserPaddingEnd != UNDEFINED_PADDING) {
|
mUserPaddingEnd != UNDEFINED_PADDING) {
|
||||||
mUserPaddingRight = mUserPaddingEnd;
|
mUserPaddingRight = mUserPaddingEnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user