Remove Toggle System UI options from Support7Demos

As system ui visibility can not be reliably controlled
at the moment for <v11. Remove this from the demo.

Bug: 8910792.

Change-Id: Id55f8ae57c0961130c2ad2ab7a5b97cc43e36883
Signed-off-by: Chris Banes <chrisbanes@google.com>
This commit is contained in:
Chris Banes
2013-05-13 23:46:07 +01:00
parent 7cf7bbe5b3
commit 247fe6d499
3 changed files with 1 additions and 16 deletions

View File

@@ -51,9 +51,5 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/toggle_visibility" />
<Button android:id="@+id/toggle_system_ui"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/toggle_system_ui" />
</LinearLayout>
</ScrollView>

View File

@@ -70,7 +70,6 @@
<string name="toggle_navigation">Navigation</string>
<string name="cycle_custom_gravity">Cycle Custom View Gravity</string>
<string name="toggle_visibility">Toggle Visibility</string>
<string name="toggle_system_ui">Toggle System UI</string>
<string name="display_options_custom_button">Custom View!</string>
<string name="display_options_menu_item">Menu Item</string>

View File

@@ -22,9 +22,9 @@ import android.support.v7.app.ActionBar.Tab;
import android.support.v7.app.ActionBarActivity;
import android.view.Gravity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import com.example.android.supportv7.R;
/**
@@ -48,7 +48,6 @@ public class ActionBarDisplayOptions extends ActionBarActivity
findViewById(R.id.toggle_navigation).setOnClickListener(this);
findViewById(R.id.cycle_custom_gravity).setOnClickListener(this);
findViewById(R.id.toggle_visibility).setOnClickListener(this);
findViewById(R.id.toggle_system_ui).setOnClickListener(this);
// Configure several action bar elements that will be toggled by display options.
mCustomView = getLayoutInflater().inflate(R.layout.action_bar_display_options_custom, null);
@@ -125,15 +124,6 @@ public class ActionBarDisplayOptions extends ActionBarActivity
bar.show();
}
return;
case R.id.toggle_system_ui:
if ((getWindow().getDecorView().getSystemUiVisibility()
& View.SYSTEM_UI_FLAG_FULLSCREEN) != 0) {
getWindow().getDecorView().setSystemUiVisibility(0);
} else {
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_FULLSCREEN);
}
return;
}
int change = bar.getDisplayOptions() ^ flags;