summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Main <nobody@android.com>2009-07-08 14:45:58 -0700
committerDirk Dougherty <ddougherty@google.com>2009-07-24 18:39:20 -0700
commit8576132a38f4242c5f5da3133e832525a70766e6 (patch)
tree114f5919dfba52efc0b3b2634322b17b0ea6bbcd
parent1cb43f69d4b09f19cff39a68b3cd00de3ecca4a4 (diff)
downloadbuild-8576132a38f4242c5f5da3133e832525a70766e6.zip
build-8576132a38f4242c5f5da3133e832525a70766e6.tar.gz
build-8576132a38f4242c5f5da3133e832525a70766e6.tar.bz2
AI 150393: edit the reference's navtree highlighting logic to handle intl/ directories
BUG=1790234 Automated import of CL 150393
-rw-r--r--tools/droiddoc/templates/assets/navtree.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/droiddoc/templates/assets/navtree.js b/tools/droiddoc/templates/assets/navtree.js
index 8e7a91c..33a4f81 100644
--- a/tools/droiddoc/templates/assets/navtree.js
+++ b/tools/droiddoc/templates/assets/navtree.js
@@ -104,7 +104,8 @@ function this_page_relative(toroot)
var file = "";
if (toroot.substr(0, 1) == "/") {
if (full.substr(0, toroot.length) == toroot) {
- return full.substr(toroot.length);
+ var basePath = getBaseUri(full);
+ return basePath.substring(toroot.length);
} else {
// the file isn't under toroot. Fail.
return null;