diff options
| author | 2023-07-14 09:01:55 +0000 | |
|---|---|---|
| committer | 2023-07-14 09:01:55 +0000 | |
| commit | 15d68f4163b7a4a5a5de9e24fade6729a0721fc3 (patch) | |
| tree | b10d346353d372807f7111eca67e13927c5795c7 | |
| parent | 55d1f7e8448e475615a397bb1c9c9954a23d323d (diff) | |
| parent | 14f9c1a33b4df619f1d88718b9d151902481366f (diff) | |
Merge "Update java docs for PreapprovalDetails.Builder#setLocale()" into main
| -rw-r--r-- | core/java/android/content/pm/PackageInstaller.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/java/android/content/pm/PackageInstaller.java b/core/java/android/content/pm/PackageInstaller.java index 679dd48f3713..b43639a26b50 100644 --- a/core/java/android/content/pm/PackageInstaller.java +++ b/core/java/android/content/pm/PackageInstaller.java @@ -4132,7 +4132,8 @@ public class PackageInstaller { * @param label * The label representing the app to be installed. * @param locale - * The locale of the app label being used. + * The locale is used to get the app label from the APKs (includes the base APK and + * split APKs) related to the package to be installed. * @param packageName * The package name of the app to be installed. * @hide @@ -4239,7 +4240,10 @@ public class PackageInstaller { } /** - * The locale of the app label being used. + * The locale is used to get the app label from the APKs (includes the base APK and + * split APKs) related to the package to be installed. The caller needs to make sure + * the app label is consistent with the app label of {@link PreapprovalDetails} when + * validating the installation. Otherwise, the pre-approval install session will fail. */ public @NonNull Builder setLocale(@NonNull ULocale value) { checkNotUsed(); |