Skip to content

Commit 603f6d7

Browse files
Deprecated(SmsInboxAPI): Deprecate phone key for message info and replace it with address as address column can be a name like service provider instead of a number
1 parent 724f275 commit 603f6d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/com/termux/api/apis/SmsInboxAPI.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ private static void writeElement(Cursor c, JsonWriter out, Map<String, String> n
113113
}
114114
}
115115

116+
out.name("address").value(smsAddress);
117+
// Deprecated: Address can be a name like service provider instead of a number.
116118
out.name("number").value(smsAddress);
117119

118120
out.name("received").value(dateFormat.format(new Date(smsReceivedDate)));

0 commit comments

Comments
 (0)