mirror of https://github.com/tasks/tasks
Remove google account check from sync adapters
parent
61e2140892
commit
bef060591a
@ -1,22 +0,0 @@
|
||||
package org.tasks.gtasks;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import org.tasks.data.GoogleTaskListDao;
|
||||
|
||||
public class GtaskSyncAdapterHelper {
|
||||
|
||||
private final GoogleTaskListDao googleTaskListDao;
|
||||
private final GoogleAccountManager googleAccountManager;
|
||||
|
||||
@Inject
|
||||
public GtaskSyncAdapterHelper(
|
||||
GoogleTaskListDao googleTaskListDao, GoogleAccountManager googleAccountManager) {
|
||||
this.googleTaskListDao = googleTaskListDao;
|
||||
this.googleAccountManager = googleAccountManager;
|
||||
}
|
||||
|
||||
public boolean isEnabled() {
|
||||
return !googleTaskListDao.getAccounts().isEmpty()
|
||||
&& !googleAccountManager.getAccounts().isEmpty();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue