From f1587da7afa18d0b3d54f0eced6c4542b7342e65 Mon Sep 17 00:00:00 2001 From: Mark Kim Date: Tue, 16 Jan 2024 14:59:07 +0000 Subject: [PATCH] Remove flag parameter from requestArchive method Test: AppArchiveButtonTest Bug: 315967626 Change-Id: I7cb40304aae19a3deaac72ae8a4d613ff6c255ec --- src/com/android/settings/spa/app/appinfo/AppArchiveButton.kt | 2 +- .../android/settings/spa/app/appinfo/AppArchiveButtonTest.kt | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/com/android/settings/spa/app/appinfo/AppArchiveButton.kt b/src/com/android/settings/spa/app/appinfo/AppArchiveButton.kt index e4fb1ea47a3..38a84998e07 100644 --- a/src/com/android/settings/spa/app/appinfo/AppArchiveButton.kt +++ b/src/com/android/settings/spa/app/appinfo/AppArchiveButton.kt @@ -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( diff --git a/tests/spa_unit/src/com/android/settings/spa/app/appinfo/AppArchiveButtonTest.kt b/tests/spa_unit/src/com/android/settings/spa/app/appinfo/AppArchiveButtonTest.kt index 6b4cc0d4a1f..2afb3f1ee62 100644 --- a/tests/spa_unit/src/com/android/settings/spa/app/appinfo/AppArchiveButtonTest.kt +++ b/tests/spa_unit/src/com/android/settings/spa/app/appinfo/AppArchiveButtonTest.kt @@ -136,8 +136,7 @@ class AppArchiveButtonTest { verify(packageInstaller).requestArchive( eq(PACKAGE_NAME), - any(), - eq(0) + any() ) }