Merge "Fix lock screen overlap test." into tm-qpr-dev am: f0ed9f3d36
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18762529 Change-Id: Icdd1c6a5e72cf3035a26f882580fc1989517c3b2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -229,6 +229,17 @@ public class NotificationShelf extends ActivatableNotificationView implements
|
|||||||
mActualWidth = actualWidth;
|
mActualWidth = actualWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void getBoundsOnScreen(Rect outRect, boolean clipToParent) {
|
||||||
|
super.getBoundsOnScreen(outRect, clipToParent);
|
||||||
|
final int actualWidth = getActualWidth();
|
||||||
|
if (isLayoutRtl()) {
|
||||||
|
outRect.left = outRect.right - actualWidth;
|
||||||
|
} else {
|
||||||
|
outRect.right = outRect.left + actualWidth;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Actual width of shelf, accounting for possible ongoing width animation
|
* @return Actual width of shelf, accounting for possible ongoing width animation
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user