Merge "reorder System shortcuts for taskbar and secondary display" into tm-qpr-dev

This commit is contained in:
Charlie Anderson authored and Android (Google) Code Review committed 2023-03-23 20:39:06 +00:00
commit bc65c3d442
2 files changed
+5 -7

No files matched your search

@@ -201,14 +201,12 @@ public class TaskbarPopupController implements TaskbarControllers.LoggableTaskba
// Create a Stream of all applicable system shortcuts
private Stream<SystemShortcut.Factory> getSystemShortcuts() {
// concat a Stream of split options with a Stream of APP_INFO
Stream<SystemShortcut.Factory> appInfo = Stream.of(APP_INFO);
// append split options to APP_INFO shortcut, the order here will reflect in the popup
return Stream.concat(
Stream.of(APP_INFO),
Utilities.getSplitPositionOptions(mContext.getDeviceProfile())
.stream()
.map(this::createSplitShortcutFactory),
appInfo
.map(this::createSplitShortcutFactory)
);
}