Commit 81f9d7aa authored by Geoffrey Métais's avatar Geoffrey Métais

Enhance MediaWrapper comparison

parent 07ce434b
......@@ -113,9 +113,12 @@ public class MediaWrapper implements Parcelable {
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