Don't crash if IMEI is empty
Change-Id: I5993d332dbd218c981ef5432aebb735d0000f67a Fixes: 109787187 Test: robotests
This commit is contained in:
@@ -53,6 +53,9 @@ public class ImeiInfoDialogController {
|
||||
static final int ID_GSM_SETTINGS = R.id.gsm_settings;
|
||||
|
||||
private static CharSequence getTextAsDigits(CharSequence text) {
|
||||
if (TextUtils.isEmpty(text)) {
|
||||
return "";
|
||||
}
|
||||
if (TextUtils.isDigitsOnly(text)) {
|
||||
final Spannable spannable = new SpannableStringBuilder(text);
|
||||
final TtsSpan span = new TtsSpan.DigitsBuilder(text.toString()).build();
|
||||
|
Reference in New Issue
Block a user