Changed conditions when formatting action bar appears, regarding #352.