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
This commit is contained in:
1 parent
a431fbb850
commit
81ebe383f5
3 files changed
+17
-21
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user