OSDN Git Service

Telephony: Fix the failure of copying SMS to SIM card for sub2
authorChaitanya Saggurthi <csaggurt@codeaurora.org>
Thu, 11 May 2017 06:13:18 +0000 (11:43 +0530)
committerChaitanya Saggurthi <csaggurt@codeaurora.org>
Thu, 11 May 2017 06:20:44 +0000 (11:50 +0530)
commitdf03aeb346ac39d28644bc2220e8c9e58505e610
tree8665e02b0c10e0fb1278d538c52e1fbd289a8fe6
parentdf57734354e9e7115eb7fd188f2815081cd3b626
Telephony: Fix the failure of copying SMS to SIM card for sub2

While copying SMS of sub2 to its SIM memory, in process of getting
current Phonetype will return default sub's(i.e,sub1's)Phonetype. But
we want to get sub2's Phonetype here.

To fix this, get current Phonetype based on subscription id

Test: manual - Copy SMS to SIM card of sub2

Bug: 35025520
Change-Id: If415530d3f74dd357054cae6eb9c3ce8f7727342
telephony/java/android/telephony/SmsMessage.java