mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-16 06:25:06 -05:00
Got rid of unnecessary instance variable
This commit is contained in:
parent
6bdaac4353
commit
09bc07596e
@ -47,8 +47,6 @@ public class ChooseFolder extends K9ListActivity {
|
||||
boolean showOptionNone = false;
|
||||
boolean showDisplayableOnly = false;
|
||||
|
||||
private List<String> folderList;
|
||||
|
||||
/**
|
||||
* What folders to display.<br/>
|
||||
* 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<String>();
|
||||
|
||||
/*
|
||||
* 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<String> folderList = new ArrayList<String>();
|
||||
try {
|
||||
int position = 0;
|
||||
for (String name : localFolders) {
|
||||
|
Loading…
Reference in New Issue
Block a user