diff options
Diffstat (limited to 'tools/layoutlib/bridge')
-rw-r--r-- | tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java index 24664c7..9bc86a0 100644 --- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java +++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java @@ -128,9 +128,10 @@ abstract class CustomBar extends LinearLayout { if (mSimulatedPlatformVersion == 0) { String path = pathOut[0]; String dirName = path.substring(0, path.lastIndexOf('/')); - pathOut[0] = dirName + "-v21" + "/" + iconName; - InputStream stream = getClass().getResourceAsStream(pathOut[0]); + path = dirName + "-v21" + "/" + iconName; + InputStream stream = getClass().getResourceAsStream(path); if (stream != null) { + pathOut[0] = path; return stream; } } |