diff options
author | Tom Taylor <tomtaylor@google.com> | 2009-10-29 08:40:05 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-10-29 08:40:05 -0700 |
commit | cf90c4a9fa4caa08d918e6845d2961ef9e5de882 (patch) | |
tree | a0f1f6a1d617cf12816d4f85afdf3f7ba0edf5a9 | |
parent | d01fd604004011e25eb9e2814535950e566f7ad6 (diff) | |
parent | 6dd8a9351b651c8e85271660fcb2db80328a7b94 (diff) | |
download | frameworks_base-cf90c4a9fa4caa08d918e6845d2961ef9e5de882.zip frameworks_base-cf90c4a9fa4caa08d918e6845d2961ef9e5de882.tar.gz frameworks_base-cf90c4a9fa4caa08d918e6845d2961ef9e5de882.tar.bz2 |
am 6dd8a935: am 3fc145aa: Merge change Ie8672184 into eclair-mr2
Merge commit '6dd8a9351b651c8e85271660fcb2db80328a7b94'
* commit '6dd8a9351b651c8e85271660fcb2db80328a7b94':
Add error code column to SMS
-rw-r--r-- | core/java/android/provider/Telephony.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java index d8c5a53..9a72d93 100644 --- a/core/java/android/provider/Telephony.java +++ b/core/java/android/provider/Telephony.java @@ -152,6 +152,12 @@ public final class Telephony { * <P>Type: INTEGER (boolean)</P> */ public static final String LOCKED = "locked"; + + /** + * Error code associated with sending or receiving this message + * <P>Type: INTEGER</P> + */ + public static final String ERROR_CODE = "error_code"; } /** @@ -243,7 +249,7 @@ public final class Telephony { * @return true if the operation succeeded */ public static boolean moveMessageToFolder(Context context, - Uri uri, int folder) { + Uri uri, int folder, int error) { if (uri == null) { return false; } @@ -266,7 +272,7 @@ public final class Telephony { return false; } - ContentValues values = new ContentValues(2); + ContentValues values = new ContentValues(3); values.put(TYPE, folder); if (markAsUnread) { @@ -274,6 +280,7 @@ public final class Telephony { } else if (markAsRead) { values.put(READ, Integer.valueOf(1)); } + values.put(ERROR_CODE, error); return 1 == SqliteWrapper.update(context, context.getContentResolver(), uri, values, null, null); |