diff options
| author | 2023-07-12 20:11:37 +0000 | |
|---|---|---|
| committer | 2023-07-12 20:11:37 +0000 | |
| commit | efe3eb602b5936e216f0c07267df8d32b473d5f0 (patch) | |
| tree | 524ba84a441b3c6b909f262dd4e334ce8504dfb3 | |
| parent | 0d801d9ee3a057d226aabcca64002d25e364b9dc (diff) | |
| parent | 7bf3becc98706029401a82b46b2bb37088667fbd (diff) | |
Merge changes from topic "remove_isResumed" into main
* changes:
nfc(api): Remove isResumed checks from API class
Revert^2 "nfc(api): Remove fg checks from API class"
| -rw-r--r-- | core/java/android/nfc/cardemulation/CardEmulation.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/java/android/nfc/cardemulation/CardEmulation.java b/core/java/android/nfc/cardemulation/CardEmulation.java index ac3344e91c06..4909b0830eeb 100644 --- a/core/java/android/nfc/cardemulation/CardEmulation.java +++ b/core/java/android/nfc/cardemulation/CardEmulation.java @@ -594,9 +594,6 @@ public final class CardEmulation { if (activity == null || service == null) { throw new NullPointerException("activity or service or category is null"); } - if (!activity.isResumed()) { - throw new IllegalArgumentException("Activity must be resumed."); - } try { return sService.setPreferredService(service); } catch (RemoteException e) { @@ -629,9 +626,6 @@ public final class CardEmulation { if (activity == null) { throw new NullPointerException("activity is null"); } - if (!activity.isResumed()) { - throw new IllegalArgumentException("Activity must be resumed."); - } try { return sService.unsetPreferredService(); } catch (RemoteException e) { |