diff --git a/tools/droiddoc/templates-sdk/assets/js/docs.js b/tools/droiddoc/templates-sdk/assets/js/docs.js index 95acec496..94918a7ed 100644 --- a/tools/droiddoc/templates-sdk/assets/js/docs.js +++ b/tools/droiddoc/templates-sdk/assets/js/docs.js @@ -3798,6 +3798,7 @@ function showSamples() { .append($('
').addClass('util'))) .appendTo(this); } else { + var plusurl = resource.url.indexOf("//") > -1 ? resource.url : "//developer.android.com/" + resource.url; $('
').addClass('card-info' + (!resource.summary ? ' empty-desc' : '')) .append($('
').addClass('section').text(section)) .append($('
').addClass('title').html(resource.title)) @@ -3807,7 +3808,7 @@ function showSamples() { .append($('
').addClass('g-plusone') .attr('data-size', 'small') .attr('data-align', 'right') - .attr('data-href', resource.url)))) + .attr('data-href', plusurl)))) .appendTo(this); }