1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-25 15:11:52 -05:00
This commit is contained in:
Jesse Vincent 2011-01-23 00:56:01 +00:00
parent c06643bd47
commit 098851684f
2 changed files with 49 additions and 42 deletions

View File

@ -342,7 +342,8 @@ public class ChooseFolder extends K9ListActivity
});
mAdapter.setNotifyOnChange(false);
int selectedFolder = -1;
try {
try
{
mAdapter.clear();
int position = 0;
for (String name : localFolders)
@ -376,10 +377,14 @@ public class ChooseFolder extends K9ListActivity
}
position++;
}
} finally {
}
finally
{
mAdapter.setNotifyOnChange(true);
runOnUiThread(new Runnable() {
public void run() {
runOnUiThread(new Runnable()
{
public void run()
{
// runOnUiThread(
mAdapter.notifyDataSetChanged();
}

View File

@ -31,7 +31,8 @@ public class ToggleScrollView extends ScrollView
@Override
public boolean onInterceptTouchEvent(MotionEvent ev)
{
if(!mScrolling) {
if(!mScrolling)
{
return false;
}
@ -63,7 +64,8 @@ public class ToggleScrollView extends ScrollView
{
return false;
}
} catch (Exception e)
}
catch (Exception e)
{
// nothing
}