Merge "Fix inflating content views after removal" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
768070530b
@@ -807,7 +807,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
|||||||
// TODO: Move inflation logic out of this call
|
// TODO: Move inflation logic out of this call
|
||||||
if (mIsChildInGroup != isChildInGroup) {
|
if (mIsChildInGroup != isChildInGroup) {
|
||||||
mIsChildInGroup = isChildInGroup;
|
mIsChildInGroup = isChildInGroup;
|
||||||
if (mIsLowPriority) {
|
if (!isRemoved() && mIsLowPriority) {
|
||||||
RowContentBindParams params = mRowContentBindStage.getStageParams(mEntry);
|
RowContentBindParams params = mRowContentBindStage.getStageParams(mEntry);
|
||||||
params.setUseLowPriority(mIsLowPriority);
|
params.setUseLowPriority(mIsLowPriority);
|
||||||
mRowContentBindStage.requestRebind(mEntry, null /* callback */);
|
mRowContentBindStage.requestRebind(mEntry, null /* callback */);
|
||||||
@@ -1576,13 +1576,15 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
|
|||||||
// TODO: Move inflation logic out of this call and remove this method
|
// TODO: Move inflation logic out of this call and remove this method
|
||||||
if (mNeedsRedaction != needsRedaction) {
|
if (mNeedsRedaction != needsRedaction) {
|
||||||
mNeedsRedaction = needsRedaction;
|
mNeedsRedaction = needsRedaction;
|
||||||
RowContentBindParams params = mRowContentBindStage.getStageParams(mEntry);
|
if (!isRemoved()) {
|
||||||
if (needsRedaction) {
|
RowContentBindParams params = mRowContentBindStage.getStageParams(mEntry);
|
||||||
params.requireContentViews(FLAG_CONTENT_VIEW_PUBLIC);
|
if (needsRedaction) {
|
||||||
} else {
|
params.requireContentViews(FLAG_CONTENT_VIEW_PUBLIC);
|
||||||
params.freeContentViews(FLAG_CONTENT_VIEW_PUBLIC);
|
} else {
|
||||||
|
params.freeContentViews(FLAG_CONTENT_VIEW_PUBLIC);
|
||||||
|
}
|
||||||
|
mRowContentBindStage.requestRebind(mEntry, null /* callback */);
|
||||||
}
|
}
|
||||||
mRowContentBindStage.requestRebind(mEntry, null /* callback */);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user