Merge "Move row check to requestPipeline instead of start" into rvc-dev am: 614f10947c
Change-Id: I9e105247072a367acc63ae3b4426c197b522b516
This commit is contained in:
@@ -151,9 +151,12 @@ public final class NotifBindPipeline {
|
|||||||
* the real work once rather than repeatedly start and cancel it.
|
* the real work once rather than repeatedly start and cancel it.
|
||||||
*/
|
*/
|
||||||
private void requestPipelineRun(NotificationEntry entry) {
|
private void requestPipelineRun(NotificationEntry entry) {
|
||||||
mLogger.logRequestPipelineRun(entry.getKey());
|
|
||||||
|
|
||||||
final BindEntry bindEntry = getBindEntry(entry);
|
final BindEntry bindEntry = getBindEntry(entry);
|
||||||
|
if (bindEntry.row == null) {
|
||||||
|
// Row is not managed yet but may be soon. Stop for now.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
mLogger.logRequestPipelineRun(entry.getKey());
|
||||||
|
|
||||||
// Abort any existing pipeline run
|
// Abort any existing pipeline run
|
||||||
mStage.abortStage(entry, bindEntry.row);
|
mStage.abortStage(entry, bindEntry.row);
|
||||||
@@ -177,10 +180,6 @@ public final class NotifBindPipeline {
|
|||||||
|
|
||||||
final BindEntry bindEntry = mBindEntries.get(entry);
|
final BindEntry bindEntry = mBindEntries.get(entry);
|
||||||
final ExpandableNotificationRow row = bindEntry.row;
|
final ExpandableNotificationRow row = bindEntry.row;
|
||||||
if (row == null) {
|
|
||||||
// Row is not managed yet but may be soon. Stop for now.
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
mStage.executeStage(entry, row, (en) -> onPipelineComplete(en));
|
mStage.executeStage(entry, row, (en) -> onPipelineComplete(en));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user