Deprecate intent action to the old changing default dialer/SMS dialogs.

Bug: 124452117
Bug: 131204827
Test: presubmit
Change-Id: Iee636cf2dbcf4bdda5fc487d6883591e9463b0af
This commit is contained in:
Hai Zhang
2019-05-03 15:31:43 +08:00
parent 114afc395c
commit 929085f3c3
2 changed files with 12 additions and 0 deletions

View File

@@ -161,6 +161,10 @@ public class TelecomManager {
* getActivity().getPackageName());
* startActivity(intent);
* </pre>
* <p>
* This is no longer supported since Q, please use
* {@link android.app.role.RoleManager#createRequestRoleIntent(String)} with
* {@link android.app.role.RoleManager#ROLE_DIALER} instead.
*/
public static final String ACTION_CHANGE_DEFAULT_DIALER =
"android.telecom.action.CHANGE_DEFAULT_DIALER";

View File

@@ -892,6 +892,10 @@ public final class Telephony {
* user whether they want to replace the current default
* SMS application with the one specified in
* {@link #EXTRA_PACKAGE_NAME}.
* <p>
* This is no longer supported since Q, please use
* {@link android.app.role.RoleManager#createRequestRoleIntent(String)} with
* {@link android.app.role.RoleManager#ROLE_SMS} instead.
*/
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
public static final String ACTION_CHANGE_DEFAULT =
@@ -902,6 +906,10 @@ public final class Telephony {
* extra for {@link #ACTION_CHANGE_DEFAULT}
*
* @see #ACTION_CHANGE_DEFAULT
* <p>
* This is no longer supported since Q, please use
* {@link android.app.role.RoleManager#createRequestRoleIntent(String)} with
* {@link android.app.role.RoleManager#ROLE_SMS} instead.
*/
public static final String EXTRA_PACKAGE_NAME = "package";