mirror of https://github.com/tasks/tasks
File attachments quick action
parent
5e6209fee9
commit
8bb5f2d405
@ -0,0 +1,40 @@
|
|||||||
|
package com.todoroo.astrid.files;
|
||||||
|
|
||||||
|
import android.app.PendingIntent;
|
||||||
|
import android.graphics.Bitmap;
|
||||||
|
import android.os.Parcel;
|
||||||
|
import android.os.Parcelable;
|
||||||
|
|
||||||
|
import com.todoroo.astrid.api.TaskAction;
|
||||||
|
|
||||||
|
public class FilesAction extends TaskAction {
|
||||||
|
|
||||||
|
public FilesAction(String text, PendingIntent intent, Bitmap icon) {
|
||||||
|
super(text, intent, icon);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parcelable creator
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("hiding")
|
||||||
|
public static final Parcelable.Creator<FilesAction> CREATOR = new Parcelable.Creator<FilesAction>() {
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public FilesAction createFromParcel(Parcel source) {
|
||||||
|
FilesAction action = new FilesAction(source.readString(),
|
||||||
|
(PendingIntent)source.readParcelable(PendingIntent.class.getClassLoader()),
|
||||||
|
(Bitmap)source.readParcelable(Bitmap.class.getClassLoader()));
|
||||||
|
action.drawable = source.readInt();
|
||||||
|
return action;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public FilesAction[] newArray(int size) {
|
||||||
|
return new FilesAction[size];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 940 B |
Loading…
Reference in New Issue