summaryrefslogtreecommitdiff
path: root/core/java/android/widget/RemoteViewsAdapter.java
diff options
context:
space:
mode:
authorPierre Barbier de Reuille <pbdr@google.com>2021-10-07 12:27:32 +0000
committerPierre Barbier de Reuille <pbdr@google.com>2021-10-25 08:20:10 +0000
commitacfcc90ebd40be13b5058529d2b77dd57cbe2c8f (patch)
tree91d84db68bb27b2e0a1e049937f9a7a165f52580 /core/java/android/widget/RemoteViewsAdapter.java
parent7fc0216e351a6358ebee84a22752080baf5f31b7 (diff)
Check if APK paths are valid right before creating the context.
The check has to be done in RemoteViews and in AppWidgetHostView right before creating the context used to inflate the app widget. Further, the APK is cached potentially in two places: in the APK with code and the APK without codes, so both places are updated if present. Test: manual, see bug for details Fix: 202369942 Change-Id: I5718f67711a3332a942d3c037eef7f30379549a4
Diffstat (limited to 'core/java/android/widget/RemoteViewsAdapter.java')
-rw-r--r--core/java/android/widget/RemoteViewsAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/RemoteViewsAdapter.java b/core/java/android/widget/RemoteViewsAdapter.java
index 6b33428d7fe4..8e293f4b356d 100644
--- a/core/java/android/widget/RemoteViewsAdapter.java
+++ b/core/java/android/widget/RemoteViewsAdapter.java
@@ -408,7 +408,7 @@ public class RemoteViewsAdapter extends BaseAdapter implements Handler.Callback
}
@Override
- protected Context getRemoteContext() {
+ protected Context getRemoteContextEnsuringCorrectCachedApkPath() {
return null;
}