diff options
author | Xavier Ducrohet <xav@android.com> | 2009-11-17 07:30:18 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-11-17 07:30:18 -0800 |
commit | fc42f828c80a31a529815b46efd863d236da618a (patch) | |
tree | 90c8c1e2fba770009b29966b51d7ae27c72b9b71 /tools | |
parent | bb74b6f7d7a7f16dca21aebd366d587a73360629 (diff) | |
parent | 1bd7261d2b595552ac852ca8ed8a5e184bd10b44 (diff) | |
download | frameworks_base-fc42f828c80a31a529815b46efd863d236da618a.zip frameworks_base-fc42f828c80a31a529815b46efd863d236da618a.tar.gz frameworks_base-fc42f828c80a31a529815b46efd863d236da618a.tar.bz2 |
am 1bd7261d: am 1ddc0077: am 19e420c5: Merge change Iae493184 into eclair
Merge commit '1bd7261d2b595552ac852ca8ed8a5e184bd10b44'
* commit '1bd7261d2b595552ac852ca8ed8a5e184bd10b44':
Minor fix for the parent style computation in the layoutlib.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java index c455977..2df9219 100644 --- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java +++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java @@ -675,9 +675,12 @@ public final class Bridge implements ILayoutBridge { name = name.substring(BridgeConstants.PREFIX_ANDROID.length()); } - // at this point we could have the format style/<name>. we want only the name + // at this point we could have the format <type>/<name>. we want only the name as long as + // the type is style. if (name.startsWith(BridgeConstants.REFERENCE_STYLE)) { name = name.substring(BridgeConstants.REFERENCE_STYLE.length()); + } else if (name.indexOf('/') != -1) { + return null; } IResourceValue parent = null; @@ -697,7 +700,7 @@ public final class Bridge implements ILayoutBridge { return (IStyleResourceValue)parent; } - sLogger.error(String.format("Unable to resolve parent style name: ", parentName)); + sLogger.error(String.format("Unable to resolve parent style name: %s", parentName)); return null; } @@ -1069,24 +1072,24 @@ public final class Bridge implements ILayoutBridge { public void wallpaperOffsetsComplete(IBinder window) { // pass for now. } - + @SuppressWarnings("unused") public Bundle sendWallpaperCommand(IBinder window, String action, int x, int y, int z, Bundle extras, boolean sync) { // pass for now. return null; } - + @SuppressWarnings("unused") public void wallpaperCommandComplete(IBinder window, Bundle result) { // pass for now. } - + @SuppressWarnings("unused") public void closeSystemDialogs(String reason) { // pass for now. } - + public IBinder asBinder() { // pass for now. return null; @@ -1151,12 +1154,12 @@ public final class Bridge implements ILayoutBridge { int z, Bundle extras, boolean sync) { // pass for now. } - + @SuppressWarnings("unused") public void closeSystemDialogs(String reason) { // pass for now. } - + public IBinder asBinder() { // pass for now. return null; |