Example usage for android.support.v4.app ActionBar getDisplayOptions

List of usage examples for android.support.v4.app ActionBar getDisplayOptions

Introduction

In this page you can find the example usage for android.support.v4.app ActionBar getDisplayOptions.

Prototype

public abstract int getDisplayOptions();

Source Link

Usage

From source file:android.support.v7.app.AppCompatActivity.java

@Override
public final boolean onMenuItemSelected(int featureId, android.view.MenuItem item) {
    if (super.onMenuItemSelected(featureId, item)) {
        return true;
    }/* w ww.  j av  a 2  s. c  om*/

    final ActionBar ab = getSupportActionBar();
    if (item.getItemId() == android.R.id.home && ab != null
            && (ab.getDisplayOptions() & ActionBar.DISPLAY_HOME_AS_UP) != 0) {
        return onSupportNavigateUp();
    }
    return false;
}