Log use of Astrid2TaskProvider

pull/1025/head
Alex Baker 4 years ago
parent d505426e5d
commit 802b824b09

@ -28,6 +28,7 @@ import java.security.NoSuchAlgorithmException;
import java.util.List;
import org.tasks.BuildConfig;
import org.tasks.R;
import org.tasks.analytics.Firebase;
import org.tasks.data.TagDao;
import org.tasks.data.TagData;
import org.tasks.data.TagDataDao;
@ -49,6 +50,7 @@ public class Astrid2TaskProvider extends ContentProvider {
TagDataDao getTagDataDao();
TaskDao getTaskDao();
TagDao getTagDao();
Firebase getFirebase();
}
private static final String AUTHORITY = BuildConfig.APPLICATION_ID + ".tasksprovider";
@ -173,8 +175,10 @@ public class Astrid2TaskProvider extends ContentProvider {
* @return cursor as described above
*/
private Cursor getTasks() {
Astrid2TaskProviderEntryPoint hilt = hilt();
hilt.getFirebase().logEvent(R.string.event_query_legacy_content_provider);
List<Task> tasks = hilt.getTaskDao().getAstrid2TaskProviderTasks();
MatrixCursor ret = new MatrixCursor(TASK_FIELD_LIST);
List<Task> tasks = hilt().getTaskDao().getAstrid2TaskProviderTasks();
for (Task task : tasks) {
String taskTags = getTagsAsString(task.getId(), TAG_SEPARATOR);

@ -379,4 +379,5 @@
<string name="param_user_pro">user_pro</string>
<string name="param_click">click</string>
<string name="event_xml_import">xml_import</string>
<string name="event_query_legacy_content_provider">query_astrid2taskprovider</string>
</resources>

Loading…
Cancel
Save