From 09bc07596ec7bff27ae9a912a86fc5804277fc7d Mon Sep 17 00:00:00 2001 From: cketti Date: Sun, 18 Mar 2012 21:48:22 +0100 Subject: [PATCH] Got rid of unnecessary instance variable --- src/com/fsck/k9/activity/ChooseFolder.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/com/fsck/k9/activity/ChooseFolder.java b/src/com/fsck/k9/activity/ChooseFolder.java index 98210bc7c..7e7a9e2a4 100644 --- a/src/com/fsck/k9/activity/ChooseFolder.java +++ b/src/com/fsck/k9/activity/ChooseFolder.java @@ -47,8 +47,6 @@ public class ChooseFolder extends K9ListActivity { boolean showOptionNone = false; boolean showDisplayableOnly = false; - private List folderList; - /** * What folders to display.
* Initialized to whatever is configured @@ -370,10 +368,12 @@ public class ChooseFolder extends K9ListActivity { } }); int selectedFolder = -1; - // We're not allowed to change the adapter from a background thread, so we use - // a java.util.List to build a list of the folder names. - // We'll add the folder names to the adapter from the UI-thread (see the 'finally' block). - folderList = new ArrayList(); + + /* + * We're not allowed to change the adapter from a background thread, so we collect the + * folder names and update the adapter in the UI thread (see finally block). + */ + final List folderList = new ArrayList(); try { int position = 0; for (String name : localFolders) {