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 324681 e6459d80bf245d1f5e2f46bda884878548d58126
parent 324680 b24e8ff760ba7b27b8ba2fceb9a90bd079b7bd19
child 324682 334758dabe03d652b633736f71c8544c9c9d19cc
push id31012
push userphilringnalda@gmail.com
push dateWed, 30 Nov 2016 03:28:23 +0000
treeherdermozilla-central@a69583d2dbc6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssebastian
bugs1316005
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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();
             }