|
|
@ -23,22 +23,19 @@ import org.transdroid.daemon.DaemonMethod; |
|
|
|
import org.transdroid.daemon.IDaemonAdapter; |
|
|
|
import org.transdroid.daemon.IDaemonAdapter; |
|
|
|
|
|
|
|
|
|
|
|
public class AddByUrlTask extends DaemonTask { |
|
|
|
public class AddByUrlTask extends DaemonTask { |
|
|
|
protected AddByUrlTask(IDaemonAdapter adapter, Bundle data) { |
|
|
|
protected AddByUrlTask(IDaemonAdapter adapter, Bundle data) { |
|
|
|
super(adapter, DaemonMethod.AddByUrl, null, data); |
|
|
|
super(adapter, DaemonMethod.AddByUrl, null, data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public static AddByUrlTask create(IDaemonAdapter adapter, String url, String title) { |
|
|
|
public static AddByUrlTask create(IDaemonAdapter adapter, String url, String title) { |
|
|
|
Bundle data = new Bundle(); |
|
|
|
Bundle data = new Bundle(); |
|
|
|
data.putString("URL", url); |
|
|
|
data.putString("URL", url); |
|
|
|
data.putString("TITLE", title); |
|
|
|
data.putString("TITLE", title); |
|
|
|
return new AddByUrlTask(adapter, data); |
|
|
|
return new AddByUrlTask(adapter, data); |
|
|
|
} |
|
|
|
} |
|
|
|
public String getUrl() { |
|
|
|
|
|
|
|
return extras.getString("URL").replaceAll("\\s", ""); |
|
|
|
public String getUrl() { |
|
|
|
} |
|
|
|
return extras.getString("URL"); |
|
|
|
public String getTitle() { |
|
|
|
} |
|
|
|
return extras.getString("TITLE"); |
|
|
|
|
|
|
|
} |
|
|
|
public String getTitle() { |
|
|
|
|
|
|
|
return extras.getString("TITLE"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|