API Review: Define the extras as containing CharSequences, not Strings

Test: atest FrameworksTelephonyTests:ImsPhoneTest
Fixes: 150331517
Change-Id: I7c6f4c13e6267a3e643ebae77697ea18ee8cd242
This commit is contained in:
Brad Ebinger
2020-03-05 17:25:24 -08:00
parent 0a5a8fe7f4
commit 2fa6a99ee9

View File

@@ -74,17 +74,17 @@ public class ImsManager {
"android.telephony.ims.action.WFC_IMS_REGISTRATION_ERROR"; "android.telephony.ims.action.WFC_IMS_REGISTRATION_ERROR";
/** /**
* An extra key corresponding to a String value which contains the carrier specific title to be * An extra key corresponding to a {@link CharSequence} value which contains the carrier
* displayed as part of the message shown to the user when there is an error registering for * specific title to be displayed as part of the message shown to the user when there is an
* WiFi calling. * error registering for WiFi calling.
*/ */
public static final String EXTRA_WFC_REGISTRATION_FAILURE_TITLE = public static final String EXTRA_WFC_REGISTRATION_FAILURE_TITLE =
"android.telephony.ims.extra.WFC_REGISTRATION_FAILURE_TITLE"; "android.telephony.ims.extra.WFC_REGISTRATION_FAILURE_TITLE";
/** /**
* An extra key corresponding to a String value which contains the carrier specific message to * An extra key corresponding to a {@link CharSequence} value which contains the carrier
* be displayed as part of the message shown to the user when there is an error registering for * specific message to be displayed as part of the message shown to the user when there is an
* WiFi calling. * error registering for WiFi calling.
*/ */
public static final String EXTRA_WFC_REGISTRATION_FAILURE_MESSAGE = public static final String EXTRA_WFC_REGISTRATION_FAILURE_MESSAGE =
"android.telephony.ims.extra.WFC_REGISTRATION_FAILURE_MESSAGE"; "android.telephony.ims.extra.WFC_REGISTRATION_FAILURE_MESSAGE";