Bug 1316005 - fixed unused methods, made methods use actual signature and added @Override; r=sebastian
authorTomislav Jurin <svezauzeto12@hotmail.com>
Thu, 24 Nov 2016 22:30:04 +0100
changeset 324714 e6459d80bf245d1f5e2f46bda884878548d58126
parent 324713 b24e8ff760ba7b27b8ba2fceb9a90bd079b7bd19
child 324715 334758dabe03d652b633736f71c8544c9c9d19cc
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewerssebastian
bugs1316005
milestone53.0a1
Bug 1316005 - fixed unused methods, made methods use actual signature and added @Override; r=sebastian
mobile/android/base/java/org/mozilla/gecko/MediaPlayerManager.java
--- a/mobile/android/base/java/org/mozilla/gecko/MediaPlayerManager.java
+++ b/mobile/android/base/java/org/mozilla/gecko/MediaPlayerManager.java
@@ -184,24 +184,23 @@ public class MediaPlayerManager extends 
                 GeckoAppShell.notifyObservers("MediaPlayer:Removed", route.getId());
                 updatePresentation();
 
                 // Remove from presentation display list.
                 displays.remove(route.getId());
                 GeckoAppShell.notifyObservers("AndroidCastDevice:Removed", route.getId());
             }
 
-            @SuppressWarnings("unused")
-            public void onRouteSelected(MediaRouter router, int type, MediaRouter.RouteInfo route) {
+            @Override
+            public void onRouteSelected(MediaRouter router, MediaRouter.RouteInfo route) {
                 updatePresentation();
             }
 
-            // These methods aren't used by the support version Media Router
-            @SuppressWarnings("unused")
-            public void onRouteUnselected(MediaRouter router, int type, RouteInfo route) {
+            @Override
+            public void onRouteUnselected(MediaRouter router, MediaRouter.RouteInfo route) {
                 updatePresentation();
             }
 
             @Override
             public void onRoutePresentationDisplayChanged(MediaRouter router, RouteInfo route) {
                 updatePresentation();
             }