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

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

AVRCP: Fix unexpected index out of bounds exception am: 32b881ef

am: 20e8c622

Change-Id: Ia13c577816c6883555dedc95f3158ee0f81b40d3
parents ce31cc85 20e8c622
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -532,7 +532,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 =