From 9c5be4eddd1607846c189e403fd74fd288ce7976 Mon Sep 17 00:00:00 2001 From: Griff Hazen Date: Mon, 17 Nov 2014 17:47:50 -0800 Subject: [PATCH] Improve doc for {get,set}HintAvoidBackgroundClipping Bug: 18414403 Change-Id: I4cc069ca8f13d7521aa94e3c18f776de69280e2f --- core/java/android/app/Notification.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index dfe5cf5f8809d..07e8dc55cfd96 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -4986,7 +4986,9 @@ public class Notification implements Parcelable } /** - * Set a hint that this notification's background should not be clipped if possible. + * Set a hint that this notification's background should not be clipped if possible, + * and should instead be resized to fully display on the screen, retaining the aspect + * ratio of the image. This can be useful for images like barcodes or qr codes. * @param hintAvoidBackgroundClipping {@code true} to avoid clipping if possible. * @return this object for method chaining */ @@ -4997,7 +4999,9 @@ public class Notification implements Parcelable } /** - * Get a hint that this notification's background should not be clipped if possible. + * Get a hint that this notification's background should not be clipped if possible, + * and should instead be resized to fully display on the screen, retaining the aspect + * ratio of the image. This can be useful for images like barcodes or qr codes. * @return {@code true} if it's ok if the background is clipped on the screen, false * otherwise. The default value is {@code false} if this was never set. */