Make phone number in Sim Settings read properly in Talk back mode.

Bug: 24308980
Change-Id: I384ec4ed8863cf6bdfa6e84ed2d88d9eda4ff42e
This commit is contained in:
Sanket Padawe
2015-11-12 15:59:54 -08:00
committed by Jack Yu
parent 33d226a747
commit 71cf9d1d12

View File

@@ -24,6 +24,7 @@ import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceScreen;
import android.provider.SearchIndexableResource;
import android.telephony.PhoneNumberUtils;
import android.telephony.PhoneStateListener;
import android.telephony.SubscriptionInfo;
import android.telephony.SubscriptionManager;
@@ -278,7 +279,7 @@ public class SimSettings extends RestrictedSettingsFragment implements Indexable
setSummary(mSubInfoRecord.getDisplayName());
} else {
setSummary(mSubInfoRecord.getDisplayName() + " - " +
getPhoneNumber(mSubInfoRecord));
PhoneNumberUtils.createTtsSpannable(getPhoneNumber(mSubInfoRecord)));
setEnabled(true);
}
setIcon(new BitmapDrawable(res, (mSubInfoRecord.createIconBitmap(mContext))));