|
|
@ -1,7 +1,5 @@
|
|
|
|
package com.todoroo.astrid.ui;
|
|
|
|
package com.todoroo.astrid.ui;
|
|
|
|
|
|
|
|
|
|
|
|
import com.todoroo.astrid.helper.AsyncImageView;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.io.StringReader;
|
|
|
|
import java.io.StringReader;
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
@ -45,6 +43,7 @@ import com.todoroo.andlib.service.RestClient;
|
|
|
|
import com.todoroo.andlib.utility.Preferences;
|
|
|
|
import com.todoroo.andlib.utility.Preferences;
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
import com.todoroo.astrid.helper.AmazonRequestsHelper;
|
|
|
|
import com.todoroo.astrid.helper.AmazonRequestsHelper;
|
|
|
|
|
|
|
|
import com.todoroo.astrid.helper.AsyncImageView;
|
|
|
|
import com.todoroo.astrid.producteev.api.StringEscapeUtils;
|
|
|
|
import com.todoroo.astrid.producteev.api.StringEscapeUtils;
|
|
|
|
import com.todoroo.astrid.service.StatisticsConstants;
|
|
|
|
import com.todoroo.astrid.service.StatisticsConstants;
|
|
|
|
import com.todoroo.astrid.service.StatisticsService;
|
|
|
|
import com.todoroo.astrid.service.StatisticsService;
|
|
|
@ -78,19 +77,21 @@ public class WebServicesView extends LinearLayout {
|
|
|
|
|
|
|
|
|
|
|
|
public WebServicesView(Context context, AttributeSet attrs, int defStyle) {
|
|
|
|
public WebServicesView(Context context, AttributeSet attrs, int defStyle) {
|
|
|
|
super(context, attrs, defStyle);
|
|
|
|
super(context, attrs, defStyle);
|
|
|
|
|
|
|
|
initialize();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public WebServicesView(Context context, AttributeSet attrs) {
|
|
|
|
public WebServicesView(Context context, AttributeSet attrs) {
|
|
|
|
super(context, attrs);
|
|
|
|
super(context, attrs);
|
|
|
|
|
|
|
|
initialize();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public WebServicesView(Context context) {
|
|
|
|
public WebServicesView(Context context) {
|
|
|
|
super(context);
|
|
|
|
super(context);
|
|
|
|
|
|
|
|
initialize();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setTask(Task task) {
|
|
|
|
public void setTask(Task task) {
|
|
|
|
this.task = task;
|
|
|
|
this.task = task;
|
|
|
|
initialize();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int[] getScrollableViews() {
|
|
|
|
public int[] getScrollableViews() {
|
|
|
@ -127,6 +128,15 @@ public class WebServicesView extends LinearLayout {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void reset() {
|
|
|
|
|
|
|
|
if (!Preferences.getBoolean(R.string.p_autoIdea, true)) {
|
|
|
|
|
|
|
|
removeAllViews();
|
|
|
|
|
|
|
|
initialize();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
refresh();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void onPageSelected(Runnable runnable) {
|
|
|
|
public void onPageSelected(Runnable runnable) {
|
|
|
|
if(!pageLoaded && Preferences.getBoolean(R.string.p_autoIdea, true))
|
|
|
|
if(!pageLoaded && Preferences.getBoolean(R.string.p_autoIdea, true))
|
|
|
|
refresh();
|
|
|
|
refresh();
|
|
|
|