Merge change 7140 into donut
* changes: Add more logging to track down a monkey bug
This commit is contained in:
@@ -44,7 +44,7 @@ import java.util.regex.Pattern;
|
|||||||
*/
|
*/
|
||||||
public final class Telephony {
|
public final class Telephony {
|
||||||
private static final String TAG = "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;
|
private static final boolean LOCAL_LOGV = DEBUG ? Config.LOGD : Config.LOGV;
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
@@ -241,7 +241,7 @@ public final class Telephony {
|
|||||||
if (uri == null) {
|
if (uri == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean markAsUnread = false;
|
boolean markAsUnread = false;
|
||||||
boolean markAsRead = false;
|
boolean markAsRead = false;
|
||||||
switch(folder) {
|
switch(folder) {
|
||||||
@@ -268,7 +268,7 @@ public final class Telephony {
|
|||||||
} else if (markAsRead) {
|
} else if (markAsRead) {
|
||||||
values.put(READ, Integer.valueOf(1));
|
values.put(READ, Integer.valueOf(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1 == SqliteWrapper.update(context, context.getContentResolver(),
|
return 1 == SqliteWrapper.update(context, context.getContentResolver(),
|
||||||
uri, values, null, null);
|
uri, values, null, null);
|
||||||
}
|
}
|
||||||
@@ -1136,8 +1136,14 @@ public final class Telephony {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Uri uri = uriBuilder.build();
|
Uri uri = uriBuilder.build();
|
||||||
|
if (DEBUG) {
|
||||||
|
Log.v(TAG, "getOrCreateThreadId uri: " + uri);
|
||||||
|
}
|
||||||
Cursor cursor = SqliteWrapper.query(context, context.getContentResolver(),
|
Cursor cursor = SqliteWrapper.query(context, context.getContentResolver(),
|
||||||
uri, ID_PROJECTION, null, null, null);
|
uri, ID_PROJECTION, null, null, null);
|
||||||
|
if (DEBUG) {
|
||||||
|
Log.v(TAG, "getOrCreateThreadId cursor cnt: " + cursor.getCount());
|
||||||
|
}
|
||||||
if (cursor != null) {
|
if (cursor != null) {
|
||||||
try {
|
try {
|
||||||
if (cursor.moveToFirst()) {
|
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
|
* It is recommended to display <em>plmn</em> before / above <em>spn</em> if
|
||||||
* both are displayed.
|
* both are displayed.
|
||||||
*
|
*
|
||||||
* <p>Note this is a protected intent that can only be sent
|
* <p>Note this is a protected intent that can only be sent
|
||||||
* by the system.
|
* by the system.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user