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

Commit c38449f2 authored by koh.changseok's avatar koh.changseok Committed by android-build-merger
Browse files

Merge "AVRCP: Fix unexpected index out of bounds exception" am: c4806e07

am: 6a990026

Change-Id: I5ae72038958812a01be1bed89f4adbf24a8c421c
parents 0112f611 6a990026
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -533,7 +533,7 @@ class BrowsedMediaPlayer {
     */
    private List<MediaBrowser.MediaItem> checkIndexOutofBounds(
            byte[] bdaddr, List<MediaBrowser.MediaItem> children, long startItem, long endItem) {
        if (endItem > children.size()) endItem = children.size() - 1;
        if (endItem >= children.size()) endItem = children.size() - 1;
        if (startItem >= Integer.MAX_VALUE) startItem = Integer.MAX_VALUE;
        try {
            List<MediaBrowser.MediaItem> childrenSubList =