diff options
5 files changed, 11 insertions, 3 deletions
diff --git a/src/com/android/launcher3/notification/FlingAnimationUtils.java b/src/com/android/launcher3/notification/FlingAnimationUtils.java index 3e954d0bb..a1f7e49c0 100644 --- a/src/com/android/launcher3/notification/FlingAnimationUtils.java +++ b/src/com/android/launcher3/notification/FlingAnimationUtils.java @@ -24,6 +24,8 @@ import android.view.animation.PathInterpolator; /** * Utility class to calculate general fling animation when the finger is released. + * + * This class was copied from com.android.systemui.statusbar. */ public class FlingAnimationUtils { diff --git a/src/com/android/launcher3/notification/Interpolators.java b/src/com/android/launcher3/notification/Interpolators.java index 664b313ed..5c3b22ab1 100644 --- a/src/com/android/launcher3/notification/Interpolators.java +++ b/src/com/android/launcher3/notification/Interpolators.java @@ -20,7 +20,9 @@ import android.view.animation.Interpolator; import android.view.animation.PathInterpolator; /** - * Utility class to receive interpolators from + * Utility class to receive interpolators from. + * + * This class was copied from com.android.systemui. */ public class Interpolators { public static final Interpolator FAST_OUT_SLOW_IN = new PathInterpolator(0.4f, 0f, 0.2f, 1f); diff --git a/src/com/android/launcher3/notification/NotificationFooterLayout.java b/src/com/android/launcher3/notification/NotificationFooterLayout.java index 2965e4a63..13eaa9a49 100644 --- a/src/com/android/launcher3/notification/NotificationFooterLayout.java +++ b/src/com/android/launcher3/notification/NotificationFooterLayout.java @@ -43,8 +43,7 @@ import java.util.Map; import java.util.Set; /** - * A {@link LinearLayout} that contains icons of notifications. If there is only one icon, - * we also supply the notification text/secondary text like we do for the main notification. + * A {@link LinearLayout} that contains only icons of notifications. * If there are more than {@link #MAX_FOOTER_NOTIFICATIONS} icons, we add a "+x" overflow. */ public class NotificationFooterLayout extends LinearLayout { diff --git a/src/com/android/launcher3/notification/NotificationInfo.java b/src/com/android/launcher3/notification/NotificationInfo.java index 33ab96679..bf57b2aff 100644 --- a/src/com/android/launcher3/notification/NotificationInfo.java +++ b/src/com/android/launcher3/notification/NotificationInfo.java @@ -55,6 +55,8 @@ public class NotificationInfo implements View.OnClickListener { Notification notification = statusBarNotification.getNotification(); title = notification.extras.getCharSequence(Notification.EXTRA_TITLE); text = notification.extras.getCharSequence(Notification.EXTRA_TEXT); + // Load the icon. Since it is backed by ashmem, we won't copy the entire bitmap + // into our process as long as we don't touch it and it exists in systemui. Icon icon = notification.getLargeIcon(); if (icon == null) { icon = notification.getSmallIcon(); diff --git a/src/com/android/launcher3/notification/SwipeHelper.java b/src/com/android/launcher3/notification/SwipeHelper.java index 3678174e6..5f03252cd 100644 --- a/src/com/android/launcher3/notification/SwipeHelper.java +++ b/src/com/android/launcher3/notification/SwipeHelper.java @@ -35,6 +35,9 @@ import com.android.launcher3.R; import java.util.HashMap; +/** + * This class was copied from com.android.systemui. + */ public class SwipeHelper { static final String TAG = "SwipeHelper"; private static final boolean DEBUG = false; |