diff options
author | Paul Sliwowski <psliwowski@google.com> | 2013-07-16 14:18:46 -0700 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2020-06-24 23:14:05 +0300 |
commit | 376634a91ae7853aa26350bf0e549cdb51798548 (patch) | |
tree | 078c3f87366510d56f47195ed0ffc5d6350666cc | |
parent | 9fd778bbaa1c8b62971b252411c2ca69c118471c (diff) | |
download | android_packages_apps_Etar-376634a91ae7853aa26350bf0e549cdb51798548.tar.gz android_packages_apps_Etar-376634a91ae7853aa26350bf0e549cdb51798548.tar.bz2 android_packages_apps_Etar-376634a91ae7853aa26350bf0e549cdb51798548.zip |
Small workaround when text is slight bigger then all day event rect.
Bug: 8972358
Change-Id: Ia4cb7fc5ef70e6dc97bcb0e9837e00f326db0804
-rw-r--r-- | src/com/android/calendar/DayView.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/calendar/DayView.java b/src/com/android/calendar/DayView.java index 03f8ba30..4297ba42 100644 --- a/src/com/android/calendar/DayView.java +++ b/src/com/android/calendar/DayView.java @@ -3600,7 +3600,9 @@ public class DayView extends View implements View.OnCreateContextMenuListener, } } - if (totalLineHeight == 0 || rect.top > bottom || rect.top + totalLineHeight < top) { + // + 2 is small workaround when the font is slightly bigger then the rect. This will + // still allow the text to be shown without overflowing into the other all day rects. + if (totalLineHeight == 0 || rect.top > bottom || rect.top + totalLineHeight + 2 < top) { return; } |