|
|
|
@ -5,8 +5,11 @@ import android.os.Bundle;
|
|
|
|
|
import com.commonsware.cwac.tlv.TouchListView;
|
|
|
|
|
import com.commonsware.cwac.tlv.TouchListView.DropListener;
|
|
|
|
|
import com.commonsware.cwac.tlv.TouchListView.SwipeListener;
|
|
|
|
|
import com.timsu.astrid.R;
|
|
|
|
|
import com.todoroo.andlib.data.Property.IntegerProperty;
|
|
|
|
|
import com.todoroo.andlib.service.Autowired;
|
|
|
|
|
import com.todoroo.andlib.utility.DialogUtilities;
|
|
|
|
|
import com.todoroo.andlib.utility.Preferences;
|
|
|
|
|
import com.todoroo.astrid.activity.DraggableTaskListActivity;
|
|
|
|
|
|
|
|
|
|
public class GtasksListActivity extends DraggableTaskListActivity {
|
|
|
|
@ -24,6 +27,14 @@ public class GtasksListActivity extends DraggableTaskListActivity {
|
|
|
|
|
|
|
|
|
|
getTouchListView().setDropListener(dropListener);
|
|
|
|
|
getTouchListView().setSwipeListener(swipeListener);
|
|
|
|
|
|
|
|
|
|
if(!Preferences.getBoolean(GtasksPreferenceService.PREF_SHOWN_LIST_HELP, false)) {
|
|
|
|
|
Preferences.setBoolean(GtasksPreferenceService.PREF_SHOWN_LIST_HELP, true);
|
|
|
|
|
DialogUtilities.okDialog(this,
|
|
|
|
|
getString(R.string.gtasks_help_title),
|
|
|
|
|
android.R.drawable.ic_dialog_info,
|
|
|
|
|
getString(R.string.gtasks_help_body), null);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private final TouchListView.DropListener dropListener = new DropListener() {
|
|
|
|
|