|
|
|
@ -10,11 +10,11 @@ import android.os.Parcel;
|
|
|
|
import android.os.Parcelable;
|
|
|
|
import android.os.Parcelable;
|
|
|
|
import androidx.annotation.MenuRes;
|
|
|
|
import androidx.annotation.MenuRes;
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
|
|
|
|
import com.google.common.base.Objects;
|
|
|
|
import com.todoroo.andlib.sql.QueryTemplate;
|
|
|
|
import com.todoroo.andlib.sql.QueryTemplate;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
import org.tasks.Objects;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* A <code>FilterListFilter</code> allows users to display tasks that have something in common.
|
|
|
|
* A <code>FilterListFilter</code> allows users to display tasks that have something in common.
|
|
|
|
@ -213,12 +213,12 @@ public class Filter extends FilterListItem {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean areItemsTheSame(@NonNull FilterListItem other) {
|
|
|
|
public boolean areItemsTheSame(@NonNull FilterListItem other) {
|
|
|
|
return other instanceof Filter && Objects.equals(sqlQuery, ((Filter) other).sqlQuery);
|
|
|
|
return other instanceof Filter && Objects.equal(sqlQuery, ((Filter) other).sqlQuery);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean areContentsTheSame(@NonNull FilterListItem other) {
|
|
|
|
public boolean areContentsTheSame(@NonNull FilterListItem other) {
|
|
|
|
return super.areContentsTheSame(other)
|
|
|
|
return super.areContentsTheSame(other)
|
|
|
|
&& Objects.equals(sqlQuery, ((Filter) other).sqlQuery);
|
|
|
|
&& Objects.equal(sqlQuery, ((Filter) other).sqlQuery);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|