Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusIconContainer.java +28 −12 Original line number Diff line number Diff line Loading @@ -217,26 +217,38 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout { * frameworks/base/core/res/res/values/config.xml */ public void addIgnoredSlot(String slotName) { addIgnoredSlotInternal(slotName); boolean added = addIgnoredSlotInternal(slotName); if (added) { requestLayout(); } } /** * Add a list of slots to be ignored * @param slots names of the icons to ignore */ public void addIgnoredSlots(List<String> slots) { boolean willAddAny = false; for (String slot : slots) { addIgnoredSlotInternal(slot); willAddAny |= addIgnoredSlotInternal(slot); } if (willAddAny) { requestLayout(); } } private void addIgnoredSlotInternal(String slotName) { if (!mIgnoredSlots.contains(slotName)) { mIgnoredSlots.add(slotName); /** * * @param slotName * @return */ private boolean addIgnoredSlotInternal(String slotName) { if (mIgnoredSlots.contains(slotName)) { return false; } mIgnoredSlots.add(slotName); return true; } /** Loading @@ -245,10 +257,11 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout { * @param slotName name of the icon slot to remove from the ignored list */ public void removeIgnoredSlot(String slotName) { mIgnoredSlots.remove(slotName); boolean removed = mIgnoredSlots.remove(slotName); if (removed) { requestLayout(); } } /** * Remove a list of slots from the list of ignored icon slots. Loading @@ -256,12 +269,15 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout { * @param slots name of the icon slots to remove from the ignored list */ public void removeIgnoredSlots(List<String> slots) { boolean removedAny = false; for (String slot : slots) { mIgnoredSlots.remove(slot); removedAny |= mIgnoredSlots.remove(slot); } if (removedAny) { requestLayout(); } } /** * Sets the list of ignored icon slots clearing the current list. Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusIconContainer.java +28 −12 Original line number Diff line number Diff line Loading @@ -217,26 +217,38 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout { * frameworks/base/core/res/res/values/config.xml */ public void addIgnoredSlot(String slotName) { addIgnoredSlotInternal(slotName); boolean added = addIgnoredSlotInternal(slotName); if (added) { requestLayout(); } } /** * Add a list of slots to be ignored * @param slots names of the icons to ignore */ public void addIgnoredSlots(List<String> slots) { boolean willAddAny = false; for (String slot : slots) { addIgnoredSlotInternal(slot); willAddAny |= addIgnoredSlotInternal(slot); } if (willAddAny) { requestLayout(); } } private void addIgnoredSlotInternal(String slotName) { if (!mIgnoredSlots.contains(slotName)) { mIgnoredSlots.add(slotName); /** * * @param slotName * @return */ private boolean addIgnoredSlotInternal(String slotName) { if (mIgnoredSlots.contains(slotName)) { return false; } mIgnoredSlots.add(slotName); return true; } /** Loading @@ -245,10 +257,11 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout { * @param slotName name of the icon slot to remove from the ignored list */ public void removeIgnoredSlot(String slotName) { mIgnoredSlots.remove(slotName); boolean removed = mIgnoredSlots.remove(slotName); if (removed) { requestLayout(); } } /** * Remove a list of slots from the list of ignored icon slots. Loading @@ -256,12 +269,15 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout { * @param slots name of the icon slots to remove from the ignored list */ public void removeIgnoredSlots(List<String> slots) { boolean removedAny = false; for (String slot : slots) { mIgnoredSlots.remove(slot); removedAny |= mIgnoredSlots.remove(slot); } if (removedAny) { requestLayout(); } } /** * Sets the list of ignored icon slots clearing the current list. Loading