urbanairship-core/src/main/java/com/urbanairship/iam/banner/BannerFragment.java
private boolean isActionBarEnabled() {
        int compatWindowActionBarAttr = getActivity().getResources().getIdentifier("windowActionBar", "attr", getActivity().getPackageName());
        TypedArray a = getActivity().obtainStyledAttributes(new int[] { android.R.attr.windowActionBar, compatWindowActionBarAttr });
        boolean isEnabled = a.getBoolean(0, false) || a.getBoolean(1, false);
        a.recycle();

        return isEnabled;
    }
/**
     * Checks if the standard or compat action bar is enabled for this activity.
     *
     * @return {@code true} if the action bar is enabled, otherwise {@code false}.
     */
Checks if the standard or compat action bar is enabled for this activity.
@return  true if the action bar is enabled, otherwise  false.
Checks if the standard or compat action bar is enabled for this activity . @return true if the action bar is enabled otherwise false .
private boolean isActionBarEnabled() {
        int compatWindowActionBarAttr = getActivity().getResources().getIdentifier("windowActionBar", "attr", getActivity().getPackageName());
        TypedArray a = getActivity().obtainStyledAttributes(new int[] { android.R.attr.windowActionBar, compatWindowActionBarAttr });
        boolean isEnabled = a.getBoolean(0, false) || a.getBoolean(1, false);
        a.recycle();
        return isEnabled;
    }
private boolean isActionBarEnabled ( ) { int compatWindowActionBarAttr = getActivity ( ) . getResources ( ) . getIdentifier ( "windowActionBar" , "attr" , getActivity ( ) . getPackageName ( ) ) ; TypedArray a = getActivity ( ) . obtainStyledAttributes ( new int [ ] { android . R . attr . windowActionBar , compatWindowActionBarAttr } ) ; boolean isEnabled = a . getBoolean ( 0 , false ) || a . getBoolean ( 1 , false ) ; a . recycle ( ) ; return isEnabled ; }
Checks if the standard or compat action bar is enabled for this activity.
Checks if the standard or compat action bar is enabled for this activity .