Loading quickstep/libs/sysui_shared.jar +809 B (88 KiB) File changed.No diff preview for this file type. View original file View changed file quickstep/src/com/android/quickstep/RecentsActivity.java +3 −1 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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()); Loading quickstep/src/com/android/quickstep/TouchInteractionService.java +5 −1 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ import com.android.launcher3.R; import com.android.systemui.shared.recents.IOverviewProxy; import com.android.systemui.shared.recents.ISystemUiProxy; 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.system.ActivityManagerWrapper; import com.android.systemui.shared.system.BackgroundExecutor; Loading Loading @@ -216,6 +217,7 @@ public class TouchInteractionService extends Service { // Start the launcher activity with our custom handler Intent homeIntent = handler.addToIntent(new Intent(mHomeIntent)); startActivity(homeIntent, ActivityOptions.makeCustomAnimation(this, 0, 0).toBundle()); /* ActivityManagerWrapper.getInstance().startRecentsActivity(null, options, ActivityOptions.makeCustomAnimation(this, 0, 0), UserHandle.myUserId(), Loading @@ -224,7 +226,9 @@ public class TouchInteractionService extends Service { // Preload the plan RecentsTaskLoader loader = TouchInteractionService.getRecentsTaskLoader(); loadPlan.preloadPlan(loader, taskId, UserHandle.myUserId()); PreloadOptions opts = new PreloadOptions(); opts.loadTitles = false; loadPlan.preloadPlan(opts, loader, taskId, UserHandle.myUserId()); // Set the load plan on UI thread mMainThreadExecutor.execute(() -> handler.setRecentsTaskLoadPlan(loadPlan)); }); Loading Loading
quickstep/libs/sysui_shared.jar +809 B (88 KiB) File changed.No diff preview for this file type. View original file View changed file
quickstep/src/com/android/quickstep/RecentsActivity.java +3 −1 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -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()); Loading
quickstep/src/com/android/quickstep/TouchInteractionService.java +5 −1 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ import com.android.launcher3.R; import com.android.systemui.shared.recents.IOverviewProxy; import com.android.systemui.shared.recents.ISystemUiProxy; 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.system.ActivityManagerWrapper; import com.android.systemui.shared.system.BackgroundExecutor; Loading Loading @@ -216,6 +217,7 @@ public class TouchInteractionService extends Service { // Start the launcher activity with our custom handler Intent homeIntent = handler.addToIntent(new Intent(mHomeIntent)); startActivity(homeIntent, ActivityOptions.makeCustomAnimation(this, 0, 0).toBundle()); /* ActivityManagerWrapper.getInstance().startRecentsActivity(null, options, ActivityOptions.makeCustomAnimation(this, 0, 0), UserHandle.myUserId(), Loading @@ -224,7 +226,9 @@ public class TouchInteractionService extends Service { // Preload the plan RecentsTaskLoader loader = TouchInteractionService.getRecentsTaskLoader(); loadPlan.preloadPlan(loader, taskId, UserHandle.myUserId()); PreloadOptions opts = new PreloadOptions(); opts.loadTitles = false; loadPlan.preloadPlan(opts, loader, taskId, UserHandle.myUserId()); // Set the load plan on UI thread mMainThreadExecutor.execute(() -> handler.setRecentsTaskLoadPlan(loadPlan)); }); Loading