summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/providers')
-rw-r--r--src/com/android/providers/contacts/CallLogProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/providers/contacts/CallLogProvider.java b/src/com/android/providers/contacts/CallLogProvider.java
index f5de14f..a82eee8 100644
--- a/src/com/android/providers/contacts/CallLogProvider.java
+++ b/src/com/android/providers/contacts/CallLogProvider.java
@@ -268,7 +268,7 @@ public class CallLogProvider extends ContentProvider {
if (!TextUtils.isEmpty(pluginName)) {
qb.appendWhere(CallLogConstants.PLUGIN_PACKAGE_NAME + " == ");
qb.appendWhereEscapeString(pluginName);
- if (pathSegments.size() >= PACKAGE_USER_NAME_PATH) {
+ if (pathSegments.size() - 1 >= PACKAGE_USER_NAME_PATH) {
String pluginUserName = pathSegments.get(PACKAGE_USER_NAME_PATH);
if (!TextUtils.isEmpty(pluginUserName)) {
qb.appendWhere(" AND " + CallLogConstants.PLUGIN_USER_HANDLE + " == ");