Manage SIM card messages shows multiple copies of the same message
Bug 5614340
The provider needs to assign each SIM message a unique id.
Change-Id: I9329a0770423fcbb04c5906ec60453ee695fbfff
diff --git a/src/com/android/providers/telephony/SmsProvider.java b/src/com/android/providers/telephony/SmsProvider.java
index 0d1fab5..063b8fa 100644
--- a/src/com/android/providers/telephony/SmsProvider.java
+++ b/src/com/android/providers/telephony/SmsProvider.java
@@ -284,7 +284,7 @@
for (int i = 0; i < count; i++) {
SmsMessage message = messages.get(i);
if (message != null) {
- cursor.addRow(convertIccToSms(message, 0));
+ cursor.addRow(convertIccToSms(message, i));
}
}
return withIccNotificationUri(cursor);