diff options
| author | 2022-10-26 18:39:17 +0000 | |
|---|---|---|
| committer | 2022-10-26 18:39:17 +0000 | |
| commit | caad6634ecc32a27e88a721912929d1d7623fd7e (patch) | |
| tree | c5ba20084ba64d70281041e10784b7b1f976ffbb | |
| parent | 7a5652f7b1c6d060785e1f68645c336d44a1138e (diff) | |
| parent | b1062f1a6299d9985bc22b7cce2420b890f24f9c (diff) | |
Merge "Remove unused scaffolding for partial shelf overflow" into tm-qpr-dev am: 254acc56c1 am: b1062f1a62
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20280526
Change-Id: I3c9c86c9d90c10c4a623ae2d77033c889428439a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java index 976710351a44..c189acec2930 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationIconContainer.java @@ -649,37 +649,6 @@ public class NotificationIconContainer extends ViewGroup { return mNumDots > 0; } - /** - * If the overflow is in the range [1, max_dots - 1) (basically 1 or 2 dots), then - * extra padding will have to be accounted for - * - * This method has no meaning for non-static containers - */ - public boolean hasPartialOverflow() { - return mNumDots > 0 && mNumDots < MAX_DOTS; - } - - /** - * Get padding that can account for extra dots up to the max. The only valid values for - * this method are for 1 or 2 dots. - * @return only extraDotPadding or extraDotPadding * 2 - */ - public int getPartialOverflowExtraPadding() { - if (!hasPartialOverflow()) { - return 0; - } - - int partialOverflowAmount = (MAX_DOTS - mNumDots) * (mStaticDotDiameter + mDotPadding); - - int adjustedWidth = getFinalTranslationX() + partialOverflowAmount; - // In case we actually give too much padding... - if (adjustedWidth > getWidth()) { - partialOverflowAmount = getWidth() - getFinalTranslationX(); - } - - return partialOverflowAmount; - } - // Give some extra room for btw notifications if we can public int getNoOverflowExtraPadding() { if (mNumDots != 0) { |