File: customizations.js

package info (click to toggle)
android-platform-build 1%3A8.1.0%2Br23-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,620 kB
  • sloc: python: 12,074; cpp: 6,068; cs: 5,512; makefile: 2,356; sh: 1,829; java: 1,359; ansic: 987
file content (14 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function showApiWarning(thing, selectedLevel, minLevel) {
  if (selectedLevel < minLevel) {
	  $("#naMessage").show().html("<div><p><strong>This " + thing + " is not available with API Level " + selectedLevel + ".</strong></p>"
	      + "<p>To use this " + thing + ", your application must specify API Level " + minLevel + " or higher in its manifest "
	      + "and be compiled against a version of the Android library that supports an equal or higher API Level. To reveal this "
	      + "document, change the value of the API Level filter above.</p>"
	      + "<p><a href='" +toRoot+ "guide/appendix/api-levels.html'>What is the API Level?</a></p></div>");
  } else {
    $("#naMessage").hide();
  }
}

// Direct searches to search.html
HAS_SEARCH_PAGE = true;