commit | c48b0b940d632b9862ff6aa32665e37fe9e50845 | [log] [tgz] |
---|---|---|
author | Xavier Ducrohet <xav@android.com> | Wed Oct 17 18:38:49 2012 -0700 |
committer | Xavier Ducrohet <xav@android.com> | Thu Oct 18 13:59:51 2012 -0700 |
tree | 409e0ace2155f38c196a12f2e4e28282bfb9fde5 | |
parent | 891b703f7b1e0e396d16477cc66a286da7161b49 [diff] |
Layoutlib: Read and close XML files as soon as possible. Because passing an InputStream to KXML does not close the stream after the file has been parsed, the files are staying locked on windows until the gc and finalizers are run. This change preload the XML files and close their stream, and then pass the content in a stream to the parser. Change-Id: Iabe27989dc616ec9e7de88e52b1ec3af9f007f7c