Merge "getTelephonyProperty returns defaultVal"
am: bb9f855faa
Change-Id: Icb376469926ed70658d8eceb54c9da4ab57a2d55
This commit is contained in:
@@ -60,6 +60,7 @@ import android.telephony.ims.aidl.IImsMmTelFeature;
|
|||||||
import android.telephony.ims.aidl.IImsRcsFeature;
|
import android.telephony.ims.aidl.IImsRcsFeature;
|
||||||
import android.telephony.ims.aidl.IImsRegistration;
|
import android.telephony.ims.aidl.IImsRegistration;
|
||||||
import android.telephony.ims.stub.ImsRegistrationImplBase;
|
import android.telephony.ims.stub.ImsRegistrationImplBase;
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
||||||
import com.android.ims.internal.IImsServiceFeatureCallback;
|
import com.android.ims.internal.IImsServiceFeatureCallback;
|
||||||
@@ -5381,7 +5382,7 @@ public class TelephonyManager {
|
|||||||
@UnsupportedAppUsage
|
@UnsupportedAppUsage
|
||||||
public static String getTelephonyProperty(String property, String defaultVal) {
|
public static String getTelephonyProperty(String property, String defaultVal) {
|
||||||
String propVal = SystemProperties.get(property);
|
String propVal = SystemProperties.get(property);
|
||||||
return propVal == null ? defaultVal : propVal;
|
return TextUtils.isEmpty(propVal) ? defaultVal : propVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @hide */
|
/** @hide */
|
||||||
|
|||||||
Reference in New Issue
Block a user