package org.wikipedia;

import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;

public class ThemedActionBarActivity extends ActionBarActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTheme(WikipediaApp.getInstance().getCurrentTheme());

        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            //this only seems to be necessary to support 2.3:
            getSupportActionBar().setBackgroundDrawable(getResources().getDrawable(Utils.getThemedAttributeId(this, R.attr.actionbar_background_color)));
        }
    }

}

package org.wikipedia;

import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;

public class ThemedActionBarActivity extends ActionBarActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTheme(WikipediaApp.getInstance().getCurrentTheme());

        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {
            //this only seems to be necessary to support 2.3:
            getSupportActionBar().setBackgroundDrawable(getResources().getDrawable(Utils.getThemedAttributeId(this, R.attr.actionbar_background_color)));
        }
    }

}

Fix action bar color in 2.3 (typo)
Fix action bar color in 2.3 (typo)

Change-Id: I188538b58d9e0235be964c1a509dc1117585b439
