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

Commit 0882fb8f 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: eaebb031

Change-Id: I26b8b0305dd77c7f6fd3c251dfe2b59fa99e004e
parents 221f16d7 eaebb031
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 =