Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5afcbcf authored by George Chang's avatar George Chang Committed by Automerger Merge Worker
Browse files

Merge "Add more details in the javadocs for getTagIntentAppPreferenceForUser"...

Merge "Add more details in the javadocs for getTagIntentAppPreferenceForUser" am: 4a89fb33 am: 9f0f23a8

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2411149



Change-Id: Ib3c971a75a4db83ab4b165805f4fadf8f2f985f7
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 4e5320d2 9f0f23a8
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -2511,7 +2511,17 @@ public final class NfcAdapter {
     * <p>This returns a mapping of package names for this user id to whether we dispatch Tag
     * intents to the package. {@link #ACTION_NDEF_DISCOVERED}, {@link #ACTION_TECH_DISCOVERED} or
     * {@link #ACTION_TAG_DISCOVERED} will not be dispatched to an Activity if its package is
    *  disallowed.
     * mapped to {@code false}.
     * <p>There are three different possible cases:
     * <p>A package not being in the preference list.
     * It does not contain any Tag intent filters or the user never triggers a Tag detection that
     * matches the intent filter of the package.
     * <p>A package being mapped to {@code true}.
     * When a package has been launched by a tag detection for the first time, the package name is
     * put to the map and by default mapped to {@code true}. The package will receive Tag intents as
     * usual.
     * <p>A package being mapped to {@code false}.
     * The user chooses to disable this package and it will not receive any Tag intents anymore.
     *
     * @param userId the user to whom this preference list will belong to
     * @return a map of the UserId which indicates the mapping from package name to