Merge "Use userContext instead of context" into main

This commit is contained in:
Treehugger Robot
2025-03-03 18:24:44 -08:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -13143,7 +13143,7 @@ Data usage charges may apply.</string>
<string name="page_agnostic_notification_action">Read more</string>
<string name= "enable_16k_app_compat_title">Run app with page size compat mode</string>
<string name= "enable_16k_app_compat_details">App will be forced stopped and run in page size compatibility mode on 16 KB device when toggled.</string>
<string name= "enable_16k_app_compat_details">App will be stopped and run in page size compatibility mode on 16 KB device when toggled.</string>
<string name="stop_app_dlg_title">Stop app?</string>
<!-- [CHAR LIMIT=200] Manage applications, text for dialog when killing persistent apps-->

View File

@@ -190,7 +190,7 @@ class PackageInfoPresenter(
requireAuthAndExecute {
coroutineScope.launch(Dispatchers.Default) {
Log.d(TAG, "Stopping package $packageName for user")
context.activityManager.stopPackageForUser(packageName)
userContext.activityManager.stopPackageForUser(packageName)
}
}
}