}
@Override
public ResourceValue findResValue(String reference, boolean forceFrameworkOnly) {
if (!mLookupChain.isEmpty() && reference.startsWith(PREFIX_RESOURCE_REF)) {
ResourceValue prev = mLookupChain.get(mLookupChain.size() - 1);
if (!reference.equals(prev.getValue())) {
ResourceValue next = new ResourceValue(prev.getResourceType(), prev.getName(),
prev.isFramework());
next.setValue(reference);
mLookupChain.add(next);
}
}
ResourceValue resValue = super.findResValue(reference, forceFrameworkOnly);
if (resValue != null) {
mLookupChain.add(resValue);
}