Refactor
This commit is contained in:
parent
0c85447136
commit
abaa7a28b2
|
@ -328,8 +328,7 @@ public class Feed extends FeedFile implements FlattrThing, ImageResource {
|
|||
return true;
|
||||
}
|
||||
if (other.feedIdentifier != null) {
|
||||
if (feedIdentifier == null
|
||||
|| !feedIdentifier.equals(other.feedIdentifier)) {
|
||||
if (feedIdentifier == null || !feedIdentifier.equals(other.feedIdentifier)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,8 +95,9 @@ public class FeedPreferences {
|
|||
* @return True if the two objects are different.
|
||||
*/
|
||||
public boolean compareWithOther(FeedPreferences other) {
|
||||
if (other == null)
|
||||
if (other == null) {
|
||||
return true;
|
||||
}
|
||||
if (!TextUtils.equals(username, other.username)) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue