From 8b8194b500f644912da23ad8d9f354e702581ab6 Mon Sep 17 00:00:00 2001 From: Katie McCormick Date: Thu, 12 Dec 2013 14:42:55 -0800 Subject: Doc update: clarify version of flags. Fixes: b/11999080 Change-Id: I0eda86d5162caab6809ff780387091544530dc32 --- docs/html/training/system-ui/navigation.jd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/html/training/system-ui/navigation.jd b/docs/html/training/system-ui/navigation.jd index 3907bb2..1c73c70 100644 --- a/docs/html/training/system-ui/navigation.jd +++ b/docs/html/training/system-ui/navigation.jd @@ -63,6 +63,9 @@ user experience.

the navigation bar and the status bar:

View decorView = getWindow().getDecorView();
 // Hide both the navigation bar and the status bar.
+// SYSTEM_UI_FLAG_FULLSCREEN is only available on Android 4.1 and higher, but as
+// a general rule, you should design your app to hide the status bar whenever you
+// hide the navigation bar.
 int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
               | View.SYSTEM_UI_FLAG_FULLSCREEN;
 decorView.setSystemUiVisibility(uiOptions);
-- cgit v1.1