From a053fa8d462639637f3d3e925c93e78cac48810e Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Fri, 25 Feb 2022 12:15:27 +0800 Subject: Add an optional extra field description for ACTION_CHANGE_DEFAULT Add the description using Intent.EXTRA_USER to pass the UserHandle of the user that owns the app. Bug: 215300017 Test: build pass Change-Id: Ieeaf0876b19cae60743cbf279e5c937a457165c9 --- core/java/android/nfc/cardemulation/CardEmulation.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/java/android/nfc/cardemulation/CardEmulation.java b/core/java/android/nfc/cardemulation/CardEmulation.java index 9a780c8a2935..2b34d8639235 100644 --- a/core/java/android/nfc/cardemulation/CardEmulation.java +++ b/core/java/android/nfc/cardemulation/CardEmulation.java @@ -25,6 +25,7 @@ import android.app.Activity; import android.app.ActivityThread; import android.content.ComponentName; import android.content.Context; +import android.content.Intent; import android.content.pm.IPackageManager; import android.content.pm.PackageManager; import android.nfc.INfcCardEmulation; @@ -62,7 +63,9 @@ public final class CardEmulation { * replace the current default service with the service * identified with the ComponentName specified in * {@link #EXTRA_SERVICE_COMPONENT}, for the category - * specified in {@link #EXTRA_CATEGORY} + * specified in {@link #EXTRA_CATEGORY}. There is an optional + * extra field using {@link Intent#EXTRA_USER} to specify + * the {@link UserHandle} of the user that owns the app. */ @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) public static final String ACTION_CHANGE_DEFAULT = -- cgit v1.2.3-59-g8ed1b