Skip to content
Snippets Groups Projects
Commit f9fd3258 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Enhance MediaWrapper comparison

(cherry picked from commit 81f9d7aa)
parent 3f996a31
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment