Close stream when create drawable to avoid memory leak

Ref-Id: I17db1776f44dcda7890be8fffed8181c626a5f10
Change-Id: Ia5efdfbe69522681d15bb1e8f16cb91881904291
fix ActivityThread.getTopLevelResources NullPointerException

MIUI-17680

Ref-Id: Ib73cd414c19d3976482a2f95032c6fc8173e591c
Change-Id: I3003718bc03c3b3db94fec45db6750e45f730ec7