From fda43206a30b2cf7bafdc3ffd5d29d4fac2b84ba Mon Sep 17 00:00:00 2001 From: Koji Arai Date: Tue, 19 Jul 2011 23:37:19 +0900 Subject: [PATCH] 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. --- src/com/fsck/k9/activity/Accounts.java | 1 + src/com/fsck/k9/activity/FolderList.java | 2 +- src/com/fsck/k9/activity/MessageList.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/fsck/k9/activity/Accounts.java b/src/com/fsck/k9/activity/Accounts.java index 37f5a41c8..7053707fe 100644 --- a/src/com/fsck/k9/activity/Accounts.java +++ b/src/com/fsck/k9/activity/Accounts.java @@ -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); diff --git a/src/com/fsck/k9/activity/FolderList.java b/src/com/fsck/k9/activity/FolderList.java index 30b0ed706..383540261 100644 --- a/src/com/fsck/k9/activity/FolderList.java +++ b/src/com/fsck/k9/activity/FolderList.java @@ -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); diff --git a/src/com/fsck/k9/activity/MessageList.java b/src/com/fsck/k9/activity/MessageList.java index f9cf52721..7b36f5426 100644 --- a/src/com/fsck/k9/activity/MessageList.java +++ b/src/com/fsck/k9/activity/MessageList.java @@ -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));