diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-03-21 01:30:31 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-03-21 01:30:31 +0000 |
commit | 0f2cfb47feff5fa979931318b23594a14eb4af02 (patch) | |
tree | 64e3aa663d2a36568df7a3d35d5322d24398e706 /java/com/android/dialer/calllog/database/AnnotatedCallLogContentProvider.java | |
parent | 6f067c91169ab9d4c24e43c039ef902700a7087f (diff) | |
parent | 2482c0fc58034e01efb7ce7e67408e248f028c95 (diff) |
Merge "Added "clearData" to CallLogDataSource and PhoneLookup interfaces."
Diffstat (limited to 'java/com/android/dialer/calllog/database/AnnotatedCallLogContentProvider.java')
-rw-r--r-- | java/com/android/dialer/calllog/database/AnnotatedCallLogContentProvider.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/java/com/android/dialer/calllog/database/AnnotatedCallLogContentProvider.java b/java/com/android/dialer/calllog/database/AnnotatedCallLogContentProvider.java index 69722731e..9a80af2f7 100644 --- a/java/com/android/dialer/calllog/database/AnnotatedCallLogContentProvider.java +++ b/java/com/android/dialer/calllog/database/AnnotatedCallLogContentProvider.java @@ -45,12 +45,7 @@ import java.util.Arrays; /** {@link ContentProvider} for the annotated call log. */ public class AnnotatedCallLogContentProvider extends ContentProvider { - /** - * We sometimes run queries where we potentially pass every ID into a where clause using the - * (?,?,?,...) syntax. The maximum number of host parameters is 999, so that's the maximum size - * this table can be. See https://www.sqlite.org/limits.html for more details. - */ - private static final int MAX_ROWS = 999; + private static final int ANNOTATED_CALL_LOG_TABLE_CODE = 1; private static final int ANNOTATED_CALL_LOG_TABLE_ID_CODE = 2; @@ -87,7 +82,7 @@ public class AnnotatedCallLogContentProvider extends ContentProvider { @Override public boolean onCreate() { - databaseHelper = new AnnotatedCallLogDatabaseHelper(getContext(), MAX_ROWS); + databaseHelper = CallLogDatabaseComponent.get(getContext()).annotatedCallLogDatabaseHelper(); // Note: As this method is called before Application#onCreate, we must *not* initialize objects // that require preparation work done in Application#onCreate. |