summaryrefslogtreecommitdiff
path: root/core/java/android/app/Notification.java
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2019-11-22 01:02:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-11-22 01:02:28 +0000
commit3674ae2f7b4efaf8ae2643804d17790144a0fa4f (patch)
tree0bbddfecbb85133555a6efb67d30aca1c126d905 /core/java/android/app/Notification.java
parent13228b0d4291978296e77b47c8220e5fc5b4143d (diff)
parent6e9e5faa9799a8715d80400928b97b452b269fb0 (diff)
Merge "Use static filter for inflater of RemoteViews"
Diffstat (limited to 'core/java/android/app/Notification.java')
-rw-r--r--core/java/android/app/Notification.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index fce74496d9c4..3ac88ebe1abb 100644
--- a/core/java/android/app/Notification.java
+++ b/core/java/android/app/Notification.java
@@ -10410,6 +10410,16 @@ public class Notification implements Parcelable
p.recycle();
return brv;
}
+
+ /**
+ * Override and return true, since {@link RemoteViews#onLoadClass(Class)} is not overridden.
+ *
+ * @see RemoteViews#shouldUseStaticFilter()
+ */
+ @Override
+ protected boolean shouldUseStaticFilter() {
+ return true;
+ }
}
/**