Skip to content

Commit

Permalink
RoutListComparer for Sorting API<24 (#45)
Browse files Browse the repository at this point in the history
* RoutListComparer for Sorting API<24

* fixed classname RouteListComparer
  • Loading branch information
pgcan authored and anthonylavado committed Sep 15, 2019
1 parent acc753e commit 84c9b80
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/android/RouteListComparer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package acidhax.cordova.chromecast;

import androidx.mediarouter.media.MediaRouter;

import java.util.Comparator;

public class RouteListComparer implements Comparator<MediaRouter.RouteInfo> {
public int compare(MediaRouter.RouteInfo left, MediaRouter.RouteInfo right) {
return left.getName().compareTo(right.getName());
}
}

0 comments on commit 84c9b80

Please sign in to comment.