Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0fd51c9 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB] Remove unused StatusBarIconController#setIconA11yLiveRegion.

This method was used by the old screen sharing indicator, but that
indicator was removed in I0c7426924b1c3770efc29a916399780112c78a9c
and no other icons use accessibilityLiveRegion.

Bug: N/A
Flag: EXEMPT removing unused code
Test: m SystemUI
Change-Id: I8d284f63a0ece1179c8fb4c51bfd2920799c974b
parent fe384731
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -88,15 +88,6 @@ public interface StatusBarIconController {
    /** Sets whether the icon in the given slot should be visible or not. */
    void setIconVisibility(String slot, boolean b);

    /**
     * Sets the live region mode for the icon
     *
     * @param slot                    Icon slot to set region for
     * @param accessibilityLiveRegion live region mode for the icon
     * @see android.view.View#setAccessibilityLiveRegion(int)
     */
    void setIconAccessibilityLiveRegion(String slot, int accessibilityLiveRegion);

    /**
     * If you don't know what to pass for `tag`, either remove all icons for slot, or use
     * TAG_PRIMARY to refer to the first icon at a given slot.
+0 −16
Original line number Diff line number Diff line
@@ -391,22 +391,6 @@ public class StatusBarIconControllerImpl implements Tunable,
        handleSet(slot, holder);
    }

    /** */
    @Override
    public void setIconAccessibilityLiveRegion(String slotName, int accessibilityLiveRegion) {
        Slot slot = mStatusBarIconList.getSlot(slotName);
        if (!slot.hasIconsInSlot()) {
            return;
        }

        List<StatusBarIconHolder> iconsToUpdate = slot.getHolderListInViewOrder();
        for (StatusBarIconHolder holder : iconsToUpdate) {
            int viewIndex = mStatusBarIconList.getViewIndex(slotName, holder.getTag());
            mIconGroups.forEach(l -> l.mGroup.getChildAt(viewIndex)
                    .setAccessibilityLiveRegion(accessibilityLiveRegion));
        }
    }

    /** */
    @Override
    public void removeIcon(String slot, int tag) {
+0 −5
Original line number Diff line number Diff line
@@ -82,9 +82,4 @@ public class FakeStatusBarIconController extends BaseLeakChecker<IconManager>
    @Override
    public void removeIcon(String slot, int tag) {
    }

    @Override
    public void setIconAccessibilityLiveRegion(String slot, int mode) {
    }

}