summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/notification/NotificationItemView.java
diff options
context:
space:
mode:
authorTony Wickham <twickham@google.com>2017-03-15 14:41:18 -0700
committerTony Wickham <twickham@google.com>2017-03-15 14:46:02 -0700
commit81ebe383f5c9ef9ebff7fefe641469e74ec44f23 (patch)
treef37bf3d42de1d49a2ef4e5337cf1b3eb43cdda25 /src/com/android/launcher3/notification/NotificationItemView.java
parenta431fbb85090b180673c38b6d88f492a805282d6 (diff)
downloadandroid_packages_apps_Trebuchet-81ebe383f5c9ef9ebff7fefe641469e74ec44f23.tar.gz
android_packages_apps_Trebuchet-81ebe383f5c9ef9ebff7fefe641469e74ec44f23.tar.bz2
android_packages_apps_Trebuchet-81ebe383f5c9ef9ebff7fefe641469e74ec44f23.zip
Small cleanup for notifications
- Add null check when collapsing footer, as container could be null if the app is opened - Remove redundant method that always passed mNotificationItemView - Set mNotificationItemView to null when it is removed Change-Id: Ia329815224b213fc688733eaaf6f29ee6888caaf
Diffstat (limited to 'src/com/android/launcher3/notification/NotificationItemView.java')
-rw-r--r--src/com/android/launcher3/notification/NotificationItemView.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/com/android/launcher3/notification/NotificationItemView.java b/src/com/android/launcher3/notification/NotificationItemView.java
index a34074271..c6268e27d 100644
--- a/src/com/android/launcher3/notification/NotificationItemView.java
+++ b/src/com/android/launcher3/notification/NotificationItemView.java
@@ -23,7 +23,6 @@ import android.graphics.Rect;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
-import android.view.ViewGroup;
import android.widget.FrameLayout;
import com.android.launcher3.ItemInfo;
@@ -85,8 +84,6 @@ public class NotificationItemView extends PopupItemView implements LogContainerP
MeasureSpec.makeMeasureSpec(newHeight, MeasureSpec.EXACTLY));
initializeBackgroundClipping(true /* force */);
invalidate();
- } else {
- ((ViewGroup) getParent()).removeView(NotificationItemView.this);
}
}
});