Fixed the below issue for GalaxyS and S2.

When scrolling a ListView, all items turn black.
it was reproduced on FolderList, MessageList and Accounts, other views were not.
This commit is contained in:
Koji Arai 2011-07-19 23:37:19 +09:00
parent 0543183b11
commit fda43206a3
3 changed files with 3 additions and 2 deletions

View File

@ -262,6 +262,7 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
listView.setOnItemClickListener(this);
listView.setItemsCanFocus(false);
listView.setEmptyView(findViewById(R.id.empty));
listView.setScrollingCacheEnabled(false);
findViewById(R.id.next).setOnClickListener(this);
registerForContextMenu(listView);

View File

@ -243,7 +243,7 @@ public class FolderList extends K9ListActivity {
mListView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_INSET);
mListView.setLongClickable(true);
mListView.setFastScrollEnabled(true);
mListView.setScrollingCacheEnabled(true);
mListView.setScrollingCacheEnabled(false);
mListView.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
onOpenFolder(((FolderInfoHolder)mAdapter.getItem(position)).name);

View File

@ -800,7 +800,7 @@ public class MessageList
mListView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_INSET);
mListView.setLongClickable(true);
mListView.setFastScrollEnabled(true);
mListView.setScrollingCacheEnabled(true);
mListView.setScrollingCacheEnabled(false);
mListView.setOnItemClickListener(this);
mListView.addFooterView(getFooterView(mListView));