diff --git a/tools/droiddoc/templates-sdk/assets/android-developer-docs.js b/tools/droiddoc/templates-sdk/assets/android-developer-docs.js index c15584f306..c88f726daa 100644 --- a/tools/droiddoc/templates-sdk/assets/android-developer-docs.js +++ b/tools/droiddoc/templates-sdk/assets/android-developer-docs.js @@ -425,11 +425,11 @@ function loadLast(cookiePath) { $(window).unload(function(){ var path = getBaseUri(location.pathname); - if ((path.indexOf("/reference/") != -1) || (path.indexOf("/training/") != -1)) { + if (path.indexOf("/reference/") != -1) { writeCookie("lastpage", path, "reference", null); } else if (path.indexOf("/guide/") != -1) { writeCookie("lastpage", path, "guide", null); - } else if (path.indexOf("/resources/") != -1) { + } else if ((path.indexOf("/resources/") != -1) || (path.indexOf("/training/") != -1)) { writeCookie("lastpage", path, "resources", null); } });