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"
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user