Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8338623a authored by Aurimas Liutikas's avatar Aurimas Liutikas
Browse files

Add ID_NULL constant to Resources.

Bug: 122967079
Test: cts in same topic
Change-Id: Ic6e2da137554a967b379b30c0d2d37341941a117
parent 3b2c2b77
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12281,6 +12281,7 @@ package android.content.res {
    method public void parseBundleExtra(java.lang.String, android.util.AttributeSet, android.os.Bundle) throws org.xmlpull.v1.XmlPullParserException;
    method public void parseBundleExtras(android.content.res.XmlResourceParser, android.os.Bundle) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
    method public deprecated void updateConfiguration(android.content.res.Configuration, android.util.DisplayMetrics);
    field public static final int ID_NULL = 0; // 0x0
  }
  public static class Resources.NotFoundException extends java.lang.RuntimeException {
+6 −0
Original line number Diff line number Diff line
@@ -98,6 +98,12 @@ import java.util.ArrayList;
 * href="{@docRoot}guide/topics/resources/index.html">Application Resources</a>.</p>
 */
public class Resources {
    /**
     * The {@code null} resource ID. This denotes an invalid resource ID that is returned by the
     * system when a resource is not found or the value is set to {@code @null} in XML.
     */
    public static final @AnyRes int ID_NULL = 0;

    static final String TAG = "Resources";

    private static final Object sSync = new Object();