Skip to content

Commit

Permalink
Implement enablePhoneAccount in ShadowTelecomManager
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 524102183
  • Loading branch information
Googler authored and Copybara-Service committed Apr 14, 2023
1 parent 6726e00 commit 622fc2e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import static android.os.Build.VERSION_CODES.N;
import static android.os.Build.VERSION_CODES.O;
import static android.os.Build.VERSION_CODES.R;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Verify.verifyNotNull;

import android.annotation.SystemApi;
Expand Down Expand Up @@ -615,6 +616,7 @@ protected void showInCallScreen(boolean showDialpad) {}
@Implementation(minSdk = M)
@HiddenApi
public void enablePhoneAccount(PhoneAccountHandle handle, boolean isEnabled) {
checkNotNull(getPhoneAccount(handle)).setIsEnabled(isEnabled);
}

/**
Expand Down

0 comments on commit 622fc2e

Please sign in to comment.