diff options
author | Kenny Root <kroot@google.com> | 2013-12-13 12:00:26 -0800 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2013-12-13 13:40:30 -0800 |
commit | e6585b32ea586743258a5457e2184ffc087f2d2f (patch) | |
tree | 409f3c83c78e878a5efe2a0cc500659a27c77f38 /media | |
parent | 584ace0d3f79ff43db9298798065dd5beaa66a45 (diff) | |
download | frameworks_base-e6585b32ea586743258a5457e2184ffc087f2d2f.zip frameworks_base-e6585b32ea586743258a5457e2184ffc087f2d2f.tar.gz frameworks_base-e6585b32ea586743258a5457e2184ffc087f2d2f.tar.bz2 |
Use java.util.Objects instead on internal API
Not needed since java.util.Objects implements all the needed
functionality.
Change-Id: Icd31d49a9801d1705427f028e9ac927d58e7d34c
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/MediaRouter.java | 7 | ||||
-rw-r--r-- | media/lib/java/com/android/media/remotedisplay/RemoteDisplay.java | 8 |
2 files changed, 7 insertions, 8 deletions
diff --git a/media/java/android/media/MediaRouter.java b/media/java/android/media/MediaRouter.java index 525dc4f..d17e8f8 100644 --- a/media/java/android/media/MediaRouter.java +++ b/media/java/android/media/MediaRouter.java @@ -16,8 +16,6 @@ package android.media; -import com.android.internal.util.Objects; - import android.Manifest; import android.app.ActivityThread; import android.content.BroadcastReceiver; @@ -43,6 +41,7 @@ import android.view.Display; import java.util.ArrayList; import java.util.HashMap; import java.util.List; +import java.util.Objects; import java.util.concurrent.CopyOnWriteArrayList; /** @@ -496,11 +495,11 @@ public class MediaRouter { boolean volumeChanged = false; boolean presentationDisplayChanged = false; - if (!Objects.equal(route.mName, globalRoute.name)) { + if (!Objects.equals(route.mName, globalRoute.name)) { route.mName = globalRoute.name; changed = true; } - if (!Objects.equal(route.mDescription, globalRoute.description)) { + if (!Objects.equals(route.mDescription, globalRoute.description)) { route.mDescription = globalRoute.description; changed = true; } diff --git a/media/lib/java/com/android/media/remotedisplay/RemoteDisplay.java b/media/lib/java/com/android/media/remotedisplay/RemoteDisplay.java index 5e15702..6cfc0e8 100644 --- a/media/lib/java/com/android/media/remotedisplay/RemoteDisplay.java +++ b/media/lib/java/com/android/media/remotedisplay/RemoteDisplay.java @@ -16,12 +16,12 @@ package com.android.media.remotedisplay; -import com.android.internal.util.Objects; - import android.media.MediaRouter; import android.media.RemoteDisplayState.RemoteDisplayInfo; import android.text.TextUtils; +import java.util.Objects; + /** * Represents a remote display that has been discovered. */ @@ -87,7 +87,7 @@ public class RemoteDisplay { } public void setName(String name) { - if (!Objects.equal(mMutableInfo.name, name)) { + if (!Objects.equals(mMutableInfo.name, name)) { mMutableInfo.name = name; mImmutableInfo = null; } @@ -98,7 +98,7 @@ public class RemoteDisplay { } public void setDescription(String description) { - if (!Objects.equal(mMutableInfo.description, description)) { + if (!Objects.equals(mMutableInfo.description, description)) { mMutableInfo.description = description; mImmutableInfo = null; } |