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

Commit 1401f6e2 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Convert IntentResolver data object to IntentFilter for comparison" into...

Merge "Convert IntentResolver data object to IntentFilter for comparison" into rvc-dev am: 302f62ce am: fc4d5c9c

Change-Id: I64ae0a62481a11843917acf98b6e9443cf22c9cd
parents 94cb49a2 fc4d5c9c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -687,7 +687,7 @@ public abstract class IntentResolver<F, R extends Object> {
    }

    private final void remove_all_objects(ArrayMap<String, F[]> map, String name,
            Object object) {
            F object) {
        F[] array = map.get(name);
        if (array != null) {
            int LAST = array.length-1;
@@ -695,7 +695,8 @@ public abstract class IntentResolver<F, R extends Object> {
                LAST--;
            }
            for (int idx=LAST; idx>=0; idx--) {
                if (array[idx] == object) {
                F arrayValue = array[idx];
                if (arrayValue != null && getIntentFilter(arrayValue) == getIntentFilter(object)) {
                    final int remain = LAST - idx;
                    if (remain > 0) {
                        System.arraycopy(array, idx+1, array, idx, remain);