Commit f9fd3258 authored by Geoffrey Métais's avatar Geoffrey Métais

Enhance MediaWrapper comparison

(cherry picked from commit 81f9d7aa)
parent 3f996a31
......@@ -113,9 +113,12 @@ public class MediaWrapper implements Parcelable {
@Override
public boolean equals(Object obj) {
if (mUri == ((MediaWrapper)obj).getUri())
Uri otherUri = ((MediaWrapper)obj).getUri();
if (mUri == null || otherUri == null)
return false;
if (mUri == otherUri)
return true;
return false;
return mUri.equals(otherUri);
}
private void init(Media media) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment