summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorScott Main <nobody@android.com>2009-07-08 14:45:58 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-07-08 14:45:58 -0700
commit8ebeb52cb0e851be649989560f4a4a81e18cb533 (patch)
tree4dfe23fcd134d66bd2bac3328ec2d52a57909d94 /tools
parentc13d04594ce638584a70c3996960705c93af7695 (diff)
downloadbuild-8ebeb52cb0e851be649989560f4a4a81e18cb533.zip
build-8ebeb52cb0e851be649989560f4a4a81e18cb533.tar.gz
build-8ebeb52cb0e851be649989560f4a4a81e18cb533.tar.bz2
AI 150393: edit the reference's navtree highlighting logic to handle intl/ directories
BUG=1790234 Automated import of CL 150393
Diffstat (limited to 'tools')
-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 f48e1dc..a209d12 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;