Add and update some comments badging/notifications.
Change-Id: Iab4e837c9be01cbd7764c8920e36c6d8159e16dd
diff --git a/src/com/android/launcher3/notification/FlingAnimationUtils.java b/src/com/android/launcher3/notification/FlingAnimationUtils.java
index 3e954d0..a1f7e49 100644
--- a/src/com/android/launcher3/notification/FlingAnimationUtils.java
+++ b/src/com/android/launcher3/notification/FlingAnimationUtils.java
@@ -24,6 +24,8 @@
/**
* 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 664b313..5c3b22a 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.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 2965e4a..13eaa9a 100644
--- a/src/com/android/launcher3/notification/NotificationFooterLayout.java
+++ b/src/com/android/launcher3/notification/NotificationFooterLayout.java
@@ -43,8 +43,7 @@
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 33ab966..bf57b2a 100644
--- a/src/com/android/launcher3/notification/NotificationInfo.java
+++ b/src/com/android/launcher3/notification/NotificationInfo.java
@@ -55,6 +55,8 @@
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 3678174..5f03252 100644
--- a/src/com/android/launcher3/notification/SwipeHelper.java
+++ b/src/com/android/launcher3/notification/SwipeHelper.java
@@ -35,6 +35,9 @@
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;