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

Commit 2fc02ba0 authored by RoboErik's avatar RoboErik Committed by Android Git Automerger
Browse files

am 276777ea: b/15676582 Fix ordering of sessions returned by MediaSessionManager

* commit '276777ea10dadd27cd9fad5260e41dfed6cfa34a':
  b/15676582 Fix ordering of sessions returned by MediaSessionManager
parents ea8a3d25 6b1bea09
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -133,7 +133,8 @@ public final class MediaSessionManager {
        ArrayList<MediaController> controllers = new ArrayList<MediaController>();
        try {
            List<IBinder> binders = mService.getSessions(notificationListener, userId);
            for (int i = binders.size() - 1; i >= 0; i--) {
            int size = binders.size();
            for (int i = 0; i < size; i++) {
                MediaController controller = MediaController.fromBinder(ISessionController.Stub
                        .asInterface(binders.get(i)));
                controllers.add(controller);