summaryrefslogtreecommitdiff
path: root/api/current.xml
diff options
context:
space:
mode:
author Romain Guy <romainguy@android.com> 2009-07-06 16:35:25 -0700
committer Romain Guy <romainguy@android.com> 2009-07-06 16:45:17 -0700
commit870e09fcd2dfdc12ac318962efd28b0420c562bb (patch)
treee96f3395c7176695e7007b21ec054c1e3d5a5e71 /api/current.xml
parent453dd50e707aa3a4d24240935f3ff7ea0a08dc7a (diff)
Fixes #1963229. Introduces Context#isRestricted().
A restricted Context is a special type of Context that prevents specific features from being used. For instance, android:onClick, used by View, can be dangerous when used from within apps widgets. By using a restricted Context to inflate apps widgets, widgets providers are prevented from using android:onClick.
Diffstat (limited to 'api/current.xml')
-rw-r--r--api/current.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/api/current.xml b/api/current.xml
index d028faac656c..9bce1f376cdf 100644
--- a/api/current.xml
+++ b/api/current.xml
@@ -27810,6 +27810,17 @@
<parameter name="modeFlags" type="int">
</parameter>
</method>
+<method name="isRestricted"
+ return="boolean"
+ abstract="false"
+ native="false"
+ synchronized="false"
+ static="false"
+ final="false"
+ deprecated="not deprecated"
+ visibility="public"
+>
+</method>
<method name="obtainStyledAttributes"
return="android.content.res.TypedArray"
abstract="false"
@@ -28323,6 +28334,17 @@
visibility="public"
>
</field>
+<field name="CONTEXT_RESTRICTED"
+ type="int"
+ transient="false"
+ volatile="false"
+ value="4"
+ static="true"
+ final="true"
+ deprecated="not deprecated"
+ visibility="public"
+>
+</field>
<field name="INPUT_METHOD_SERVICE"
type="java.lang.String"
transient="false"