summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2017-01-26 09:24:41 -0800
committerTony Wickham <twickham@google.com>2017-01-26 09:24:41 -0800
commit30e45187a8ff5cd4b562f39360cb73a1ee13532b (patch)
tree2e9c8fb217492284223093663d01382309b6d0eb /src/com/android/launcher3
parent9438ed414fdabadb4cd09da184867b1c44b91095 (diff)
downloadandroid_packages_apps_Trebuchet-30e45187a8ff5cd4b562f39360cb73a1ee13532b.tar.gz
android_packages_apps_Trebuchet-30e45187a8ff5cd4b562f39360cb73a1ee13532b.tar.bz2
android_packages_apps_Trebuchet-30e45187a8ff5cd4b562f39360cb73a1ee13532b.zip
Add and update some comments badging/notifications.
Change-Id: Iab4e837c9be01cbd7764c8920e36c6d8159e16dd
Diffstat (limited to 'src/com/android/launcher3')
-rw-r--r--src/com/android/launcher3/notification/FlingAnimationUtils.java2
-rw-r--r--src/com/android/launcher3/notification/Interpolators.java4
-rw-r--r--src/com/android/launcher3/notification/NotificationFooterLayout.java3
-rw-r--r--src/com/android/launcher3/notification/NotificationInfo.java2
-rw-r--r--src/com/android/launcher3/notification/SwipeHelper.java3
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;