Merge "Fix ConcurrentModificationException in SliceBackgroundWorker"

This commit is contained in:
TreeHugger Robot
2019-01-07 20:11:17 +00:00
committed by Android (Google) Code Review
3 changed files with 19 additions and 9 deletions

View File

@@ -105,8 +105,8 @@ public class WifiSlice implements CustomSliceable {
return listBuilder.build();
}
final List<AccessPoint> results =
SliceBackgroundWorker.getInstance(mContext, this).getResults();
final SliceBackgroundWorker worker = SliceBackgroundWorker.getInstance(getUri());
final List<AccessPoint> results = worker != null ? worker.getResults() : null;
// Need a loading text when results are not ready.
boolean needLoadingRow = results == null;