title: Drawable.createFromStream() returns null
body: <p>In my Android Studio project, I created a custom folder called <code>assets</code>, which in turn contains another folder called <code>flags</code>, which in turn contains a lot of XML files representing SVG images.
  Whenever I try to load such XML files and create <code>Drawable</code>s from them via the function <code>Drawable.createFromStream()</code>, I obtain a <code>null</code>.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>AssetManager am = getApplicationContext().getAssets();
  String[] files = new String[0];
  try
  {
    files = am.list("flags");
  }
  catch (IOException e)
  {
    e.printStackTrace();
  }
  // At this point, variable 'files' correctly contains all the names of my XML files
  ArrayList&lt;Drawable&gt; drawables = new ArrayList&lt;&gt;();
  for (String file : files)
  {
    Drawable d = null;
    try
    {
      d = Drawable.createFromStream(am.open("flags/" + file), null);
    }
    catch (IOException e)
    {
      Log.i("EX2", "Second exception: " + file + " not found");
      e.printStackTrace();
    }
    drawables.add(d);
    if (d == null) // This message is always printed, but no exception occurs
      Log.i("FLAG", "Null drawable");
  }
  </code></pre>
  
  <p>As you can see fromt he code above, the message <code>Null drawable</code> is always printed even if the XML file is found (in fact, no exception occurs).</p>