1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00
This commit is contained in:
cketti 2012-09-11 04:33:20 +02:00
parent cd98875729
commit ac8d1aa162
2 changed files with 6 additions and 8 deletions

View File

@ -403,8 +403,8 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
}
private void initializeActionBar() {
mActionBar.setDisplayShowCustomEnabled(true);
mActionBar.setCustomView(R.layout.actionbar_custom);
mActionBar.setDisplayShowCustomEnabled(true);
mActionBar.setCustomView(R.layout.actionbar_custom);
View customView = mActionBar.getCustomView();
mActionBarTitle = (TextView) customView.findViewById(R.id.actionbar_title_first);

View File

@ -44,7 +44,6 @@ import com.actionbarsherlock.app.ActionBar.OnNavigationListener;
import com.actionbarsherlock.view.ActionMode;
import com.actionbarsherlock.view.Menu;
import com.actionbarsherlock.view.MenuItem;
import com.actionbarsherlock.view.Window;
import com.fsck.k9.Account;
import com.fsck.k9.Account.FolderMode;
import com.fsck.k9.AccountStats;
@ -106,10 +105,9 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
private FontSizes mFontSizes = K9.getFontSizes();
private Context context;
private MenuItem mRefreshMenuItem;
private View mActionBarProgressView;
private MenuItem mRefreshMenuItem;
private View mActionBarProgressView;
private ActionBar mActionBar;
private ActionMode mActionMode;
private TextView mActionBarTitle;
private TextView mActionBarSubTitle;
@ -120,7 +118,7 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
public void refreshTitle() {
runOnUiThread(new Runnable() {
public void run() {
mActionBarTitle.setText(getString(R.string.folders_title));
mActionBarTitle.setText(getString(R.string.folders_title));
mActionBarUnread.setText(String.valueOf(mUnreadMessageCount));
String operation = mAdapter.mListener.getOperation(FolderList.this, getTimeFormat()).trim();
@ -189,7 +187,7 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
runOnUiThread(new Runnable() {
public void run() {
if (progress) {
if (progress) {
mRefreshMenuItem.setActionView(mActionBarProgressView);
} else {
mRefreshMenuItem.setActionView(null);