Merge "Fix null checks in isInVisibleLocation." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
871264790e
@@ -827,18 +827,16 @@ public class NotificationStackScrollLayoutController {
|
|||||||
|
|
||||||
private boolean isInVisibleLocation(NotificationEntry entry) {
|
private boolean isInVisibleLocation(NotificationEntry entry) {
|
||||||
ExpandableNotificationRow row = entry.getRow();
|
ExpandableNotificationRow row = entry.getRow();
|
||||||
ExpandableViewState childViewState = row.getViewState();
|
if (row == null) {
|
||||||
|
|
||||||
if (childViewState == null) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ExpandableViewState childViewState = row.getViewState();
|
||||||
if ((childViewState.location & ExpandableViewState.VISIBLE_LOCATIONS) == 0) {
|
if ((childViewState.location & ExpandableViewState.VISIBLE_LOCATIONS) == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (row.getVisibility() != View.VISIBLE) {
|
|
||||||
return false;
|
return row.getVisibility() == View.VISIBLE;
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isViewAffectedBySwipe(ExpandableView expandableView) {
|
public boolean isViewAffectedBySwipe(ExpandableView expandableView) {
|
||||||
|
|||||||
Reference in New Issue
Block a user