Add missing parts for renaming of the call redirection role.
Also drops the _APP suffix in role names, to be consistent with other roles. Test: manual Change-Id: Iee3566b353fdf49a916067dfffebcf3d5b87c326
This commit is contained in:
@@ -75,7 +75,7 @@ import java.lang.annotation.RetentionPolicy;
|
||||
*
|
||||
* public void requestRole() {
|
||||
* RoleManager roleManager = (RoleManager) getSystemService(ROLE_SERVICE);
|
||||
* Intent intent = roleManager.createRequestRoleIntent("android.app.role.CALL_SCREENING_APP");
|
||||
* Intent intent = roleManager.createRequestRoleIntent("android.app.role.CALL_SCREENING");
|
||||
* startActivityForResult(intent, REQUEST_ID);
|
||||
* }
|
||||
*
|
||||
|
||||
@@ -35,7 +35,6 @@ import com.android.internal.os.SomeArgs;
|
||||
import com.android.internal.telecom.IInCallAdapter;
|
||||
import com.android.internal.telecom.IInCallService;
|
||||
|
||||
import java.lang.String;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@@ -212,7 +211,7 @@ import java.util.List;
|
||||
* {@link android.Manifest.permission.CALL_COMPANION_APP}.</li>
|
||||
* </ul>
|
||||
* <p>
|
||||
* Your app should request to fill the role {@code android.app.role.CAR_MODE_DIALER_APP} in order to
|
||||
* Your app should request to fill the role {@code android.app.role.CAR_MODE_DIALER} in order to
|
||||
* become the default (see <a href="#requestRole">above</a> for how to request your app fills this
|
||||
* role).
|
||||
*
|
||||
@@ -232,7 +231,7 @@ import java.util.List;
|
||||
* {@link android.Manifest.permission.CALL_COMPANION_APP}.</li>
|
||||
* </ul>
|
||||
* <p>
|
||||
* Your app should request to fill the role {@code android.app.role.CALL_COMPANION_APP} in order to
|
||||
* Your app should request to fill the role {@code android.app.role.CALL_COMPANION} in order to
|
||||
* become a call companion app (see <a href="#requestRole">above</a> for how to request your app
|
||||
* fills this role).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user