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

Commit 90768407 authored by Eugene Susla's avatar Eugene Susla Committed by Android (Google) Code Review
Browse files

Merge "Address API council feedback" into sc-dev

parents 4e924074 206e26a2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -60,6 +60,10 @@ public final class AssociationRequest implements Parcelable {
    /**
     * Device profile: watch.
     *
     * If specified, the current request may have a modified UI to highlight that the device being
     * set up is a specific kind of device, and some extra permissions may be granted to the app
     * as a result.
     *
     * @see AssociationRequest.Builder#setDeviceProfile
     */
    public static final String DEVICE_PROFILE_WATCH =
+1 −1
Original line number Diff line number Diff line
@@ -668,7 +668,7 @@ public final class PermissionControllerManager {
    public void getPrivilegesDescriptionStringForProfile(
            @NonNull String profileName,
            @NonNull @CallbackExecutor Executor executor,
            @NonNull Consumer<String> callback) {
            @NonNull Consumer<CharSequence> callback) {
        mRemoteService.postAsync(service -> {
            AndroidFuture<String> future = new AndroidFuture<>();
            service.getPrivilegesDescriptionStringForProfile(profileName, future);
+1 −1
Original line number Diff line number Diff line
@@ -1330,7 +1330,7 @@ public class CompanionDeviceManagerService extends SystemService implements Bind
        mPermissionControllerManager.getPrivilegesDescriptionStringForProfile(
                deviceProfile, FgThread.getExecutor(), desc -> {
                        try {
                            result.complete(desc);
                            result.complete(String.valueOf(desc));
                        } catch (Exception e) {
                            result.completeExceptionally(e);
                        }