Merge "Fix notification dot not always being up to date." into sc-dev am: 8e095ccb05 am: 70e8c0b022
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15302020 Change-Id: If3bee71b46586a6b26bc030e87166fdb3788e440
This commit is contained in:
@@ -96,6 +96,13 @@ public class PredictionRowView extends LinearLayout implements
|
|||||||
|
|
||||||
private void updateVisibility() {
|
private void updateVisibility() {
|
||||||
setVisibility(mPredictionsEnabled ? VISIBLE : GONE);
|
setVisibility(mPredictionsEnabled ? VISIBLE : GONE);
|
||||||
|
if (mLauncher.getAppsView() != null) {
|
||||||
|
if (mPredictionsEnabled) {
|
||||||
|
mLauncher.getAppsView().getAppsStore().registerIconContainer(this);
|
||||||
|
} else {
|
||||||
|
mLauncher.getAppsView().getAppsStore().unregisterIconContainer(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ public class AllAppsStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void registerIconContainer(ViewGroup container) {
|
public void registerIconContainer(ViewGroup container) {
|
||||||
if (container != null) {
|
if (container != null && !mIconContainers.contains(container)) {
|
||||||
mIconContainers.add(container);
|
mIconContainers.add(container);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -580,11 +580,6 @@ public class FloatingIconView extends FrameLayout implements
|
|||||||
if (originalView instanceof IconLabelDotView) {
|
if (originalView instanceof IconLabelDotView) {
|
||||||
setIconAndDotVisible(originalView, true);
|
setIconAndDotVisible(originalView, true);
|
||||||
}
|
}
|
||||||
if (originalView instanceof BubbleTextView) {
|
|
||||||
BubbleTextView btv = (BubbleTextView) originalView;
|
|
||||||
btv.setIconVisible(true);
|
|
||||||
btv.setForceHideDot(true);
|
|
||||||
}
|
|
||||||
view.finish(dragLayer);
|
view.finish(dragLayer);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user