Merge "Add running apps icons to taskbar for desktop environment."
This commit is contained in:
@@ -170,13 +170,15 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
|
||||
mAccessibilityDelegate = new TaskbarShortcutMenuAccessibilityDelegate(this);
|
||||
|
||||
final boolean isDesktopMode = getPackageManager().hasSystemFeature(FEATURE_PC);
|
||||
|
||||
// Construct controllers.
|
||||
mControllers = new TaskbarControllers(this,
|
||||
new TaskbarDragController(this),
|
||||
buttonController,
|
||||
getPackageManager().hasSystemFeature(FEATURE_PC)
|
||||
? new DesktopNavbarButtonsViewController(this, navButtonsView) :
|
||||
new NavbarButtonsViewController(this, navButtonsView),
|
||||
isDesktopMode
|
||||
? new DesktopNavbarButtonsViewController(this, navButtonsView)
|
||||
: new NavbarButtonsViewController(this, navButtonsView),
|
||||
new RotationButtonController(this,
|
||||
c.getColor(R.color.taskbar_nav_icon_light_color),
|
||||
c.getColor(R.color.taskbar_nav_icon_dark_color),
|
||||
@@ -197,7 +199,10 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
new TaskbarAutohideSuspendController(this),
|
||||
new TaskbarPopupController(this),
|
||||
new TaskbarForceVisibleImmersiveController(this),
|
||||
new TaskbarAllAppsController(this));
|
||||
new TaskbarAllAppsController(this),
|
||||
isDesktopMode
|
||||
? new DesktopTaskbarRecentAppsController(this)
|
||||
: TaskbarRecentAppsController.DEFAULT);
|
||||
}
|
||||
|
||||
public void init(TaskbarSharedState sharedState) {
|
||||
|
||||
Reference in New Issue
Block a user