fix action bar color changed but status bar color not change, and optimize code