use of com.bourke.glimmr.common.TaskQueueDelegateFactory in project glimmr by brk3.
the class AddToGroupDialogFragment method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TaskQueueDelegateFactory<AddItemToGroupTask> factory = new TaskQueueDelegateFactory<AddItemToGroupTask>(mActivity);
mQueue = new TaskQueue(factory.get(Constants.GROUP_QUEUE, AddItemToGroupTask.class));
BusProvider.getInstance().register(this);
setStyle(STYLE_NO_TITLE, 0);
}
use of com.bourke.glimmr.common.TaskQueueDelegateFactory in project glimmr by brk3.
the class AddToPhotosetTaskQueueService method initTaskQueue.
@Override
protected void initTaskQueue() {
TaskQueueDelegateFactory<AddItemToPhotosetTask> factory = new TaskQueueDelegateFactory<AddItemToPhotosetTask>(this);
mQueue = new TaskQueue(factory.get(Constants.PHOTOSET_QUEUE, AddItemToPhotosetTask.class));
}
use of com.bourke.glimmr.common.TaskQueueDelegateFactory in project glimmr by brk3.
the class PhotoUploadActivity method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (BuildConfig.DEBUG)
Log.d(getLogTag(), "onCreate");
setContentView(R.layout.photo_upload_activity);
mPhotoUploadFragment = (PhotoUploadFragment) getSupportFragmentManager().findFragmentById(R.id.photoUploadFragment);
mActionBar.setDisplayHomeAsUpEnabled(true);
TaskQueueDelegateFactory<UploadPhotoTask> factory = new TaskQueueDelegateFactory<UploadPhotoTask>(this);
mUploadQueue = new TaskQueue(factory.get(Constants.UPLOAD_QUEUE, UploadPhotoTask.class));
/* hide the keyboard */
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
handleIntent(getIntent());
}
use of com.bourke.glimmr.common.TaskQueueDelegateFactory in project glimmr by brk3.
the class AddToPhotosetDialogFragment method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TaskQueueDelegateFactory<AddItemToPhotosetTask> factory = new TaskQueueDelegateFactory<AddItemToPhotosetTask>(mActivity);
mQueue = new TaskQueue(factory.get(Constants.PHOTOSET_QUEUE, AddItemToPhotosetTask.class));
setStyle(STYLE_NO_TITLE, 0);
}
use of com.bourke.glimmr.common.TaskQueueDelegateFactory in project glimmr by brk3.
the class AddToGroupTaskQueueService method initTaskQueue.
@Override
protected void initTaskQueue() {
TaskQueueDelegateFactory<AddItemToGroupTask> factory = new TaskQueueDelegateFactory<AddItemToGroupTask>(this);
mQueue = new TaskQueue(factory.get(Constants.GROUP_QUEUE, AddItemToGroupTask.class));
}
Aggregations