From 2e887a1b5cce479c61ec0695b02c3e364291800a Mon Sep 17 00:00:00 2001 From: Patrick Baumann Date: Wed, 10 Apr 2019 13:36:57 -0700 Subject: [PATCH] Cleans up PackageInstaller.Session docs This change addresses API council feedback by making the PackageInstaller#Session reference to setMultiPackage() consistent with the implementation and the method doc. Fixes: 124326154 Test: atest AtomicInstallTest Change-Id: I5ef1ebb715ea33a6070ac431c18a9c661b5df00a --- core/java/android/content/pm/PackageInstaller.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/java/android/content/pm/PackageInstaller.java b/core/java/android/content/pm/PackageInstaller.java index 7fe840c11dfa4..a344eeb60c35a 100644 --- a/core/java/android/content/pm/PackageInstaller.java +++ b/core/java/android/content/pm/PackageInstaller.java @@ -30,7 +30,6 @@ import android.annotation.UnsupportedAppUsage; import android.app.ActivityManager; import android.app.AppGlobals; import android.content.Intent; -import android.content.IntentFilter; import android.content.IntentSender; import android.content.pm.PackageManager.DeleteFlags; import android.content.pm.PackageManager.InstallReason; @@ -840,13 +839,12 @@ public class PackageInstaller { * installation (for example, the same split name), the APK in this session * will replace the existing APK. *

- * In such a case that multiple packages need to be commited simultaneously, + * In such a case that multiple packages need to be committed simultaneously, * multiple sessions can be referenced by a single multi-package session. * This session is created with no package name and calling - * {@link SessionParams#setMultiPackage()} with {@code true}. The - * individual session IDs can be added with {@link #addChildSessionId(int)} - * and commit of the multi-package session will result in all child sessions - * being committed atomically. + * {@link SessionParams#setMultiPackage()}. The individual session IDs can be + * added with {@link #addChildSessionId(int)} and commit of the multi-package + * session will result in all child sessions being committed atomically. */ public static class Session implements Closeable { /** {@hide} */