mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Cleanup
This commit is contained in:
parent
cd98875729
commit
ac8d1aa162
@ -403,8 +403,8 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void initializeActionBar() {
|
private void initializeActionBar() {
|
||||||
mActionBar.setDisplayShowCustomEnabled(true);
|
mActionBar.setDisplayShowCustomEnabled(true);
|
||||||
mActionBar.setCustomView(R.layout.actionbar_custom);
|
mActionBar.setCustomView(R.layout.actionbar_custom);
|
||||||
|
|
||||||
View customView = mActionBar.getCustomView();
|
View customView = mActionBar.getCustomView();
|
||||||
mActionBarTitle = (TextView) customView.findViewById(R.id.actionbar_title_first);
|
mActionBarTitle = (TextView) customView.findViewById(R.id.actionbar_title_first);
|
||||||
|
@ -44,7 +44,6 @@ import com.actionbarsherlock.app.ActionBar.OnNavigationListener;
|
|||||||
import com.actionbarsherlock.view.ActionMode;
|
import com.actionbarsherlock.view.ActionMode;
|
||||||
import com.actionbarsherlock.view.Menu;
|
import com.actionbarsherlock.view.Menu;
|
||||||
import com.actionbarsherlock.view.MenuItem;
|
import com.actionbarsherlock.view.MenuItem;
|
||||||
import com.actionbarsherlock.view.Window;
|
|
||||||
import com.fsck.k9.Account;
|
import com.fsck.k9.Account;
|
||||||
import com.fsck.k9.Account.FolderMode;
|
import com.fsck.k9.Account.FolderMode;
|
||||||
import com.fsck.k9.AccountStats;
|
import com.fsck.k9.AccountStats;
|
||||||
@ -106,10 +105,9 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
|
|||||||
private FontSizes mFontSizes = K9.getFontSizes();
|
private FontSizes mFontSizes = K9.getFontSizes();
|
||||||
private Context context;
|
private Context context;
|
||||||
|
|
||||||
private MenuItem mRefreshMenuItem;
|
private MenuItem mRefreshMenuItem;
|
||||||
private View mActionBarProgressView;
|
private View mActionBarProgressView;
|
||||||
private ActionBar mActionBar;
|
private ActionBar mActionBar;
|
||||||
private ActionMode mActionMode;
|
|
||||||
|
|
||||||
private TextView mActionBarTitle;
|
private TextView mActionBarTitle;
|
||||||
private TextView mActionBarSubTitle;
|
private TextView mActionBarSubTitle;
|
||||||
@ -120,7 +118,7 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
|
|||||||
public void refreshTitle() {
|
public void refreshTitle() {
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
mActionBarTitle.setText(getString(R.string.folders_title));
|
mActionBarTitle.setText(getString(R.string.folders_title));
|
||||||
mActionBarUnread.setText(String.valueOf(mUnreadMessageCount));
|
mActionBarUnread.setText(String.valueOf(mUnreadMessageCount));
|
||||||
|
|
||||||
String operation = mAdapter.mListener.getOperation(FolderList.this, getTimeFormat()).trim();
|
String operation = mAdapter.mListener.getOperation(FolderList.this, getTimeFormat()).trim();
|
||||||
@ -189,7 +187,7 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
|
|||||||
|
|
||||||
runOnUiThread(new Runnable() {
|
runOnUiThread(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
if (progress) {
|
if (progress) {
|
||||||
mRefreshMenuItem.setActionView(mActionBarProgressView);
|
mRefreshMenuItem.setActionView(mActionBarProgressView);
|
||||||
} else {
|
} else {
|
||||||
mRefreshMenuItem.setActionView(null);
|
mRefreshMenuItem.setActionView(null);
|
||||||
|
Loading…
Reference in New Issue
Block a user