Fixing crash when emptyView gets added twice
Bug: 152129003 Change-Id: Id86279ace164453d0126773af89e3c9309d40202
This commit is contained in:
parent
86932724e7
commit
fd04f702d9
|
@ -1057,7 +1057,7 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
|
|||
*/
|
||||
public void showCurrentTask(int runningTaskId) {
|
||||
if (getTaskView(runningTaskId) == null) {
|
||||
boolean wasEmpty = getTaskViewCount() == 0;
|
||||
boolean wasEmpty = getChildCount() == 0;
|
||||
// Add an empty view for now until the task plan is loaded and applied
|
||||
final TaskView taskView = mTaskViewPool.getView();
|
||||
addView(taskView, mTaskViewStartIndex);
|
||||
|
|
Loading…
Reference in New Issue