Merge changes from topic "remove_isResumed" into main am: efe3eb602b am: c775756c1b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2454982 Change-Id: Iab1c94d58dcd138b40c58b9984cec4628d0baad2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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