|
|
@ -71,7 +71,6 @@ import com.todoroo.andlib.utility.DialogUtilities;
|
|
|
|
import com.todoroo.andlib.utility.Preferences;
|
|
|
|
import com.todoroo.andlib.utility.Preferences;
|
|
|
|
import com.todoroo.astrid.actfm.EditPeopleControlSet;
|
|
|
|
import com.todoroo.astrid.actfm.EditPeopleControlSet;
|
|
|
|
import com.todoroo.astrid.actfm.sync.ActFmPreferenceService;
|
|
|
|
import com.todoroo.astrid.actfm.sync.ActFmPreferenceService;
|
|
|
|
import com.todoroo.astrid.dao.Database;
|
|
|
|
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
import com.todoroo.astrid.gcal.GCalControlSet;
|
|
|
|
import com.todoroo.astrid.gcal.GCalControlSet;
|
|
|
|
import com.todoroo.astrid.helper.TaskEditControlSet;
|
|
|
|
import com.todoroo.astrid.helper.TaskEditControlSet;
|
|
|
@ -185,9 +184,6 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener {
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private ExceptionService exceptionService;
|
|
|
|
private ExceptionService exceptionService;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private Database database;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private TaskService taskService;
|
|
|
|
private TaskService taskService;
|
|
|
|
|
|
|
|
|
|
|
@ -515,7 +511,7 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener {
|
|
|
|
R.layout.control_set_assigned,
|
|
|
|
R.layout.control_set_assigned,
|
|
|
|
R.layout.control_set_default_display,
|
|
|
|
R.layout.control_set_default_display,
|
|
|
|
R.string.actfm_EPA_assign_label_long, REQUEST_LOG_IN);
|
|
|
|
R.string.actfm_EPA_assign_label_long, REQUEST_LOG_IN);
|
|
|
|
if(Locale.getDefault().getCountry().equals("US")) {
|
|
|
|
if(Locale.getDefault().getCountry().equals("US")) { //$NON-NLS-1$
|
|
|
|
taskRabbitControl = new TaskRabbitControlSet(this, R.layout.control_set_default_display);
|
|
|
|
taskRabbitControl = new TaskRabbitControlSet(this, R.layout.control_set_default_display);
|
|
|
|
controls.add(taskRabbitControl);
|
|
|
|
controls.add(taskRabbitControl);
|
|
|
|
peopleControlSet.addListener(taskRabbitControl);
|
|
|
|
peopleControlSet.addListener(taskRabbitControl);
|
|
|
@ -1269,8 +1265,11 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onPageSelected(int position) {
|
|
|
|
public void onPageSelected(final int position) {
|
|
|
|
this.setPagerHeightForPosition(position);
|
|
|
|
final Runnable onPageSelected = new Runnable() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void run() {
|
|
|
|
|
|
|
|
setPagerHeightForPosition(position);
|
|
|
|
|
|
|
|
|
|
|
|
NestableScrollView scrollView = (NestableScrollView)getView().findViewById(R.id.edit_scroll);
|
|
|
|
NestableScrollView scrollView = (NestableScrollView)getView().findViewById(R.id.edit_scroll);
|
|
|
|
if((tabStyle == TAB_STYLE_WEB && position == 1) ||
|
|
|
|
if((tabStyle == TAB_STYLE_WEB && position == 1) ||
|
|
|
@ -1279,7 +1278,18 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener {
|
|
|
|
setScrollabelViews(webServices.getScrollableViews());
|
|
|
|
setScrollabelViews(webServices.getScrollableViews());
|
|
|
|
else
|
|
|
|
else
|
|
|
|
scrollView.setScrollabelViews(null);
|
|
|
|
scrollView.setScrollabelViews(null);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(getTabForPosition(position) == TAB_VIEW_WEB_SERVICES)
|
|
|
|
|
|
|
|
webServices.onPageSelected(new Runnable() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void run() {
|
|
|
|
|
|
|
|
onPageSelected.run();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
onPageSelected.run();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -1287,7 +1297,7 @@ ViewPager.OnPageChangeListener, EditNoteActivity.UpdatesChangedListener {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// EditNoteActivity Lisener when there are new updates/comments
|
|
|
|
// EditNoteActivity Listener when there are new updates/comments
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void updatesChanged() {
|
|
|
|
public void updatesChanged() {
|
|
|
|
setCurrentTab(TAB_VIEW_UPDATES);
|
|
|
|
setCurrentTab(TAB_VIEW_UPDATES);
|
|
|
|