mmsc can be ""
Test: Visual Test Fix: 319063785 Change-Id: I8909412b1debee06fa461de9e9230a991bc046e1
This commit is contained in:
@@ -514,7 +514,7 @@ fun deleteApn(uri: Uri, context: Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun validateMMSC(validEnabled: Boolean, mmsc: String, context: Context): String? {
|
fun validateMMSC(validEnabled: Boolean, mmsc: String, context: Context): String? {
|
||||||
return if (validEnabled && !mmsc.matches(Regex("^https?:\\/\\/.+")))
|
return if (validEnabled && mmsc != "" && !mmsc.matches(Regex("^https?:\\/\\/.+")))
|
||||||
context.resources.getString(R.string.error_mmsc_valid)
|
context.resources.getString(R.string.error_mmsc_valid)
|
||||||
else null
|
else null
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user