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

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

Rename the Proxy calling role to Call redirection.

Also drops the _APP suffix in role names, to be consistent with other
roles.

Test: manual
Change-Id: I4ec09c407b4819e0f8c788ae95114f5a00223a46
parent f09c0d66
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -30,10 +30,10 @@ import java.util.List;
import java.util.stream.Collectors;

public class RoleManagerAdapterImpl implements RoleManagerAdapter {
    private static final String ROLE_CALL_REDIRECTION_APP = RoleManager.ROLE_PROXY_CALLING_APP;
    private static final String ROLE_CAR_MODE_DIALER = RoleManager.ROLE_CAR_MODE_DIALER_APP;
    private static final String ROLE_CALL_SCREENING = RoleManager.ROLE_CALL_SCREENING_APP;
    private static final String ROLE_CALL_COMPANION_APP = RoleManager.ROLE_CALL_COMPANION_APP;
    private static final String ROLE_CALL_REDIRECTION_APP = RoleManager.ROLE_CALL_REDIRECTION;
    private static final String ROLE_CAR_MODE_DIALER = RoleManager.ROLE_CAR_MODE_DIALER;
    private static final String ROLE_CALL_SCREENING = RoleManager.ROLE_CALL_SCREENING;
    private static final String ROLE_CALL_COMPANION_APP = RoleManager.ROLE_CALL_COMPANION;

    private String mOverrideDefaultCallRedirectionApp = null;
    private String mOverrideDefaultCallScreeningApp = null;
+1 −1
Original line number Diff line number Diff line
@@ -243,7 +243,7 @@ public class SelfManagedCallingActivity extends Activity {

    private void requestCallScreeningRole() {
        RoleManager roleManager = (RoleManager) getSystemService(ROLE_SERVICE);
        Intent intent = roleManager.createRequestRoleIntent(RoleManager.ROLE_CALL_SCREENING_APP);
        Intent intent = roleManager.createRequestRoleIntent(RoleManager.ROLE_CALL_SCREENING);
        startActivityForResult(intent, REQUEST_ID);
    }
}
 No newline at end of file