Code example for FragmentActivity

Methods: onBackPressed

0
		if (mActionBarCompat instanceof ActionBarCompatBase) {
			if (((ActionBarCompatBase) mActionBarCompat).isActionModeShowing() && mActionModeCompat != null) {
				mActionModeCompat.finish();
			} 
		} 
		super.onBackPressed(); 
	} 
 
	@Override 
	protected void onCreate(final Bundle savedInstanceState) {
		if (mActionBarCompat instanceof ActionBarCompatBase) {
			((ActionBarCompatBase) mActionBarCompat).requestCustomTitleView();
		} 
		super.onCreate(savedInstanceState);
	} 
 
	/** 
	 * Base action bar-aware implementation for 
	 * {@link Activity#onCreateOptionsMenu(android.view.Menu)}. 
	 *  
	 * Note: marking menu items as invisible/visible is not currently supported.