Remove flag parameter from requestArchive method
Test: AppArchiveButtonTest Bug: 315967626 Change-Id: I7cb40304aae19a3deaac72ae8a4d613ff6c255ec
This commit is contained in:
@@ -104,7 +104,7 @@ class AppArchiveButton(
|
|||||||
userHandle
|
userHandle
|
||||||
)
|
)
|
||||||
try {
|
try {
|
||||||
packageInstaller.requestArchive(app.packageName, pendingIntent.intentSender, 0)
|
packageInstaller.requestArchive(app.packageName, pendingIntent.intentSender)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
Log.e(LOG_TAG, "Request archive failed", e)
|
Log.e(LOG_TAG, "Request archive failed", e)
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
|
@@ -136,8 +136,7 @@ class AppArchiveButtonTest {
|
|||||||
|
|
||||||
verify(packageInstaller).requestArchive(
|
verify(packageInstaller).requestArchive(
|
||||||
eq(PACKAGE_NAME),
|
eq(PACKAGE_NAME),
|
||||||
any(),
|
any()
|
||||||
eq(0)
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user