From 24115e8823ffbd835932d571009eb4b32f2fb7e2 Mon Sep 17 00:00:00 2001
From: Taesu Lee
Date: Fri, 17 Jul 2020 12:18:11 +0900
Subject: [PATCH] Fix description of indices for messages in the ICC.
Bug: 161478651
Test: build
Signed-off-by: Taesu Lee
Change-Id: I66adaf4e4cd392c837c3719bd1f36a426938933e
---
telephony/java/android/telephony/SmsManager.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/telephony/java/android/telephony/SmsManager.java b/telephony/java/android/telephony/SmsManager.java
index abcc82bcdfe7c..1dbec2c0f4434 100644
--- a/telephony/java/android/telephony/SmsManager.java
+++ b/telephony/java/android/telephony/SmsManager.java
@@ -1656,8 +1656,7 @@ public final class SmsManager {
* operation is performed on the correct subscription.
*
*
- * @param messageIndex This is the same index used to access a message
- * from {@link #getMessagesFromIcc()}.
+ * @param messageIndex the message index of the message in the ICC (1-based index).
* @return true for success, false if the operation fails. Failure can be due to IPC failure,
* RIL/modem error which results in SMS failed to be deleted on SIM
*
@@ -1740,7 +1739,7 @@ public final class SmsManager {
* operation is performed on the correct subscription.
*
*
- * @return List of SmsMessage objects
+ * @return List of SmsMessage objects for valid records only.
*
* {@hide}
*/