Commit 247fe6d4 authored by Chris Banes's avatar Chris Banes
Browse files

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: default avatarChris Banes <chrisbanes@google.com>
parent 7cf7bbe5
......@@ -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>
\ No newline at end of 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>
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment