Add option to not preload titles.
Bug: 3236757 Change-Id: I305b659d8ce35ee9c269b25b88558fd29de79ba0
This commit is contained in:
1 parent
7149889dc0
commit
117386c9b7
3 files changed
+8
-2
No files matched your search
@@ -22,6 +22,7 @@ import android.support.annotation.Nullable;
|
||||
import android.widget.ArrayAdapter;
|
||||
|
||||
import com.android.systemui.shared.recents.model.RecentsTaskLoadPlan;
|
||||
import com.android.systemui.shared.recents.model.RecentsTaskLoadPlan.PreloadOptions;
|
||||
import com.android.systemui.shared.recents.model.RecentsTaskLoader;
|
||||
import com.android.systemui.shared.recents.model.Task;
|
||||
|
||||
@@ -37,7 +38,8 @@ public class RecentsActivity extends ListActivity {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
RecentsTaskLoadPlan plan = new RecentsTaskLoadPlan(this);
|
||||
plan.preloadPlan(new RecentsTaskLoader(this, 1, 1, 0), -1, UserHandle.myUserId());
|
||||
plan.preloadPlan(new PreloadOptions(), new RecentsTaskLoader(this, 1, 1, 0), -1,
|
||||
UserHandle.myUserId());
|
||||
|
||||
mAdapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1);
|
||||
mAdapter.addAll(plan.getTaskStack().getTasks());
|
||||
|
||||
Reference in new issue
Block a user