mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 18:28:20 +00:00
Merge "Fix notification dot not always being up to date." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8e095ccb05
@@ -96,6 +96,13 @@ public class PredictionRowView extends LinearLayout implements
|
||||
|
||||
private void updateVisibility() {
|
||||
setVisibility(mPredictionsEnabled ? VISIBLE : GONE);
|
||||
if (mLauncher.getAppsView() != null) {
|
||||
if (mPredictionsEnabled) {
|
||||
mLauncher.getAppsView().getAppsStore().registerIconContainer(this);
|
||||
} else {
|
||||
mLauncher.getAppsView().getAppsStore().unregisterIconContainer(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -132,7 +132,7 @@ public class AllAppsStore {
|
||||
}
|
||||
|
||||
public void registerIconContainer(ViewGroup container) {
|
||||
if (container != null) {
|
||||
if (container != null && !mIconContainers.contains(container)) {
|
||||
mIconContainers.add(container);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -580,11 +580,6 @@ public class FloatingIconView extends FrameLayout implements
|
||||
if (originalView instanceof IconLabelDotView) {
|
||||
setIconAndDotVisible(originalView, true);
|
||||
}
|
||||
if (originalView instanceof BubbleTextView) {
|
||||
BubbleTextView btv = (BubbleTextView) originalView;
|
||||
btv.setIconVisible(true);
|
||||
btv.setForceHideDot(true);
|
||||
}
|
||||
view.finish(dragLayer);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user