mirror of https://github.com/tasks/tasks
moved search filter to astridApi project
parent
76bfd834da
commit
0271341b07
@ -1,73 +0,0 @@
|
|||||||
package com.todoroo.astrid.core;
|
|
||||||
|
|
||||||
import android.os.Parcel;
|
|
||||||
import android.os.Parcelable;
|
|
||||||
|
|
||||||
import com.todoroo.astrid.api.FilterListItem;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Special filter that triggers the search functionality when accessed.
|
|
||||||
*
|
|
||||||
* @author Tim Su <tim@todoroo.com>
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public class SearchFilter extends FilterListItem {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor for creating a new SearchFilter
|
|
||||||
*
|
|
||||||
* @param listingTitle
|
|
||||||
* Title of this item as displayed on the lists page, e.g. Inbox
|
|
||||||
*/
|
|
||||||
public SearchFilter(String listingTitle) {
|
|
||||||
this.listingTitle = listingTitle;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor for creating a new SearchFilter
|
|
||||||
*/
|
|
||||||
protected SearchFilter() {
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
// --- parcelable
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public int describeContents() {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public void writeToParcel(Parcel dest, int flags) {
|
|
||||||
super.writeToParcel(dest, flags);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Parcelable creator
|
|
||||||
*/
|
|
||||||
public static final Parcelable.Creator<SearchFilter> CREATOR = new Parcelable.Creator<SearchFilter>() {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public SearchFilter createFromParcel(Parcel source) {
|
|
||||||
SearchFilter item = new SearchFilter();
|
|
||||||
item.readFromParcel(source);
|
|
||||||
return item;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritDoc}
|
|
||||||
*/
|
|
||||||
public SearchFilter[] newArray(int size) {
|
|
||||||
return new SearchFilter[size];
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue