Java Code Examples for android.support.v4.app.ActivityCompat.invalidateOptionsMenu()

The following are Jave code examples for showing how to use invalidateOptionsMenu() of the android.support.v4.app.ActivityCompat class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: GitHub   File: ConsoleActivity.java   Source Code and License Vote up 5 votes
/**
 * Called whenever the displayed terminal is changed.
 */
private void onTerminalChanged() {
	View terminalNameOverlay = findCurrentView(R.id.terminal_name_overlay);
	if (terminalNameOverlay != null)
		terminalNameOverlay.startAnimation(fade_out_delayed);
	updateDefault();
	updatePromptVisible();
	ActivityCompat.invalidateOptionsMenu(ConsoleActivity.this);
}