Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0146d7f authored by Hai Zhang's avatar Hai Zhang
Browse files

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
parent 0b5a809d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
 * }
 *
+2 −3
Original line number Diff line number Diff line
@@ -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).
 */