Merge "Fix null checks in isInVisibleLocation." into tm-qpr-dev am: 871264790e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21850332 Change-Id: Ic44575ada846bf38b9ef19386b29c35ac68d49cb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -827,18 +827,16 @@ public class NotificationStackScrollLayoutController {
|
||||
|
||||
private boolean isInVisibleLocation(NotificationEntry entry) {
|
||||
ExpandableNotificationRow row = entry.getRow();
|
||||
ExpandableViewState childViewState = row.getViewState();
|
||||
|
||||
if (childViewState == null) {
|
||||
if (row == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
ExpandableViewState childViewState = row.getViewState();
|
||||
if ((childViewState.location & ExpandableViewState.VISIBLE_LOCATIONS) == 0) {
|
||||
return false;
|
||||
}
|
||||
if (row.getVisibility() != View.VISIBLE) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
return row.getVisibility() == View.VISIBLE;
|
||||
}
|
||||
|
||||
public boolean isViewAffectedBySwipe(ExpandableView expandableView) {
|
||||
|
||||
Reference in New Issue
Block a user