Merge "Update notification dots in Taskbar All Apps." into udc-dev
This commit is contained in:
commit
5bf0806768
2 files changed
+10
-1
No files matched your search
@@ -137,6 +137,7 @@ public class TaskbarPopupController implements TaskbarControllers.LoggableTaskba
|
|||||||
if (folder != null) {
|
if (folder != null) {
|
||||||
folder.iterateOverItems(op);
|
folder.iterateOverItems(op);
|
||||||
}
|
}
|
||||||
|
mControllers.taskbarAllAppsController.updateNotificationDots(updatedDots);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -24,8 +24,10 @@ import com.android.launcher3.model.data.AppInfo;
|
|||||||
import com.android.launcher3.model.data.ItemInfo;
|
import com.android.launcher3.model.data.ItemInfo;
|
||||||
import com.android.launcher3.taskbar.TaskbarControllers;
|
import com.android.launcher3.taskbar.TaskbarControllers;
|
||||||
import com.android.launcher3.taskbar.overlay.TaskbarOverlayContext;
|
import com.android.launcher3.taskbar.overlay.TaskbarOverlayContext;
|
||||||
|
import com.android.launcher3.util.PackageUserKey;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.function.Predicate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles the all apps overlay window initialization, updates, and its data.
|
* Handles the all apps overlay window initialization, updates, and its data.
|
||||||
@@ -91,6 +93,13 @@ public final class TaskbarAllAppsController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Updates the current notification dots. */
|
||||||
|
public void updateNotificationDots(Predicate<PackageUserKey> updatedDots) {
|
||||||
|
if (mAppsView != null) {
|
||||||
|
mAppsView.getAppsStore().updateNotificationDots(updatedDots);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** Opens the {@link TaskbarAllAppsContainerView} in a new window. */
|
/** Opens the {@link TaskbarAllAppsContainerView} in a new window. */
|
||||||
public void show() {
|
public void show() {
|
||||||
show(true);
|
show(true);
|
||||||
@@ -135,7 +144,6 @@ public final class TaskbarAllAppsController {
|
|||||||
overlayContext.getDragController().setDisallowLongClick(mDisallowLongClick);
|
overlayContext.getDragController().setDisallowLongClick(mDisallowLongClick);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
public int getTaskbarAllAppsTopPadding() {
|
public int getTaskbarAllAppsTopPadding() {
|
||||||
// Allow null-pointer since this should only be null if the apps view is not showing.
|
// Allow null-pointer since this should only be null if the apps view is not showing.
|
||||||
|
|||||||
Reference in new issue
Block a user