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

Commit 480d1c18 authored by Arthur Ishiguro's avatar Arthur Ishiguro
Browse files

Fix erroneous array indexing in onEndpointStarted callback

Bug: 381102105
Flag: android.chre.flags.offload_implementation
Test: Run on device
Change-Id: I30eb6e13ff613787f991471bef91cf8a7f2ecc08
parent 57a37ccd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ public class ContextHubHalEndpointCallback
        }
        HubEndpointInfo[] endpointInfos = new HubEndpointInfo[halEndpointInfos.length];
        for (int i = 0; i < halEndpointInfos.length; i++) {
            endpointInfos[i++] = new HubEndpointInfo(halEndpointInfos[i]);
            endpointInfos[i] = new HubEndpointInfo(halEndpointInfos[i]);
        }
        mEndpointLifecycleCallback.onEndpointStarted(endpointInfos);
    }