diff options
| author | 2022-02-04 20:08:19 +0000 | |
|---|---|---|
| committer | 2022-02-04 20:08:19 +0000 | |
| commit | ebed2a6d95c776a3a84a07c07382adb86c5115d7 (patch) | |
| tree | 15714874491ac263e943b2d79f34f3d496361ae2 /telecomm/java/android | |
| parent | 22d98f5c379957425696f07a0a52b40677b8a308 (diff) | |
| parent | e0416215873c1b4d1ceafbcec1ee1916ae4f047d (diff) | |
Merge "limit TelecomManager#registerPhoneAccount to 10; api doc update"
Diffstat (limited to 'telecomm/java/android')
| -rw-r--r-- | telecomm/java/android/telecom/TelecomManager.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java index d7cdb507362a..2141c794d743 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java @@ -1493,9 +1493,14 @@ public class TelecomManager { * when placing calls. The user may still need to enable the {@link PhoneAccount} within * the phone app settings before the account is usable. * <p> + * Note: Each package is limited to 10 {@link PhoneAccount} registrations. + * <p> * A {@link SecurityException} will be thrown if an app tries to register a * {@link PhoneAccountHandle} where the package name specified within * {@link PhoneAccountHandle#getComponentName()} does not match the package name of the app. + * <p> + * A {@link IllegalArgumentException} will be thrown if an app tries to register a + * {@link PhoneAccount} when the upper bound limit, 10, has already been reached. * * @param account The complete {@link PhoneAccount}. */ |