summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-07-14 15:01:07 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-07-14 15:01:07 -0700
commit4caac2bb4c8616edf8224408931ffc0e532537de (patch)
treec0eaba7ad8d80e3b002c4da37ecfede2ce77f301 /core/java
parent83a066c6d8ed953c3f5a1a44316509c9a9b0c6c2 (diff)
parentf748f22f4e62d549dde8f56e0f52476f061f7bc0 (diff)
downloadframeworks_base-4caac2bb4c8616edf8224408931ffc0e532537de.zip
frameworks_base-4caac2bb4c8616edf8224408931ffc0e532537de.tar.gz
frameworks_base-4caac2bb4c8616edf8224408931ffc0e532537de.tar.bz2
Merge change 7140 into donut
* changes: Add more logging to track down a monkey bug
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/provider/Telephony.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java
index 0cfa506..c292c53 100644
--- a/core/java/android/provider/Telephony.java
+++ b/core/java/android/provider/Telephony.java
@@ -44,7 +44,7 @@ import java.util.regex.Pattern;
*/
public final class Telephony {
private static final String TAG = "Telephony";
- private static final boolean DEBUG = false;
+ private static final boolean DEBUG = true;
private static final boolean LOCAL_LOGV = DEBUG ? Config.LOGD : Config.LOGV;
// Constructor
@@ -241,7 +241,7 @@ public final class Telephony {
if (uri == null) {
return false;
}
-
+
boolean markAsUnread = false;
boolean markAsRead = false;
switch(folder) {
@@ -268,7 +268,7 @@ public final class Telephony {
} else if (markAsRead) {
values.put(READ, Integer.valueOf(1));
}
-
+
return 1 == SqliteWrapper.update(context, context.getContentResolver(),
uri, values, null, null);
}
@@ -1136,8 +1136,14 @@ public final class Telephony {
}
Uri uri = uriBuilder.build();
+ if (DEBUG) {
+ Log.v(TAG, "getOrCreateThreadId uri: " + uri);
+ }
Cursor cursor = SqliteWrapper.query(context, context.getContentResolver(),
uri, ID_PROJECTION, null, null, null);
+ if (DEBUG) {
+ Log.v(TAG, "getOrCreateThreadId cursor cnt: " + cursor.getCount());
+ }
if (cursor != null) {
try {
if (cursor.moveToFirst()) {
@@ -1620,7 +1626,7 @@ public final class Telephony {
*
* It is recommended to display <em>plmn</em> before / above <em>spn</em> if
* both are displayed.
- *
+ *
* <p>Note this is a protected intent that can only be sent
* by the system.
*/