Merge "Remove flag parameter from requestArchive method" into main

This commit is contained in:
Mark Kim
2024-01-18 17:19:15 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ class AppArchiveButton(
userHandle
)
try {
packageInstaller.requestArchive(app.packageName, pendingIntent.intentSender, 0)
packageInstaller.requestArchive(app.packageName, pendingIntent.intentSender)
} catch (e: Exception) {
Log.e(LOG_TAG, "Request archive failed", e)
Toast.makeText(

View File

@@ -136,8 +136,7 @@ class AppArchiveButtonTest {
verify(packageInstaller).requestArchive(
eq(PACKAGE_NAME),
any(),
eq(0)
any()
)
}