am ae4f5759: Improve the threading model in the gestures settings activity.

Merge commit 'ae4f575911d0c17de8d687a8fa092b0aa8360243'

* commit 'ae4f575911d0c17de8d687a8fa092b0aa8360243':
  Improve the threading model in the gestures settings activity.
This commit is contained in:
Romain Guy 2009-06-11 11:42:01 -07:00 committed by The Android Open Source Project
commit c2cabbe976
1 changed files with 3 additions and 1 deletions

View File

@ -209,7 +209,7 @@ public class GesturesActivity extends ListActivity {
adapter.sort(mSorter);
checkForEmpty();
adapter.notifyDataSetChanged();
LauncherModel.deleteGestureFromDatabase(this, info);
Toast.makeText(this, R.string.gestures_delete_success, Toast.LENGTH_SHORT).show();
@ -239,6 +239,8 @@ public class GesturesActivity extends ListActivity {
final LauncherModel model = Launcher.getModel();
for (String name : store.getGestureEntries()) {
if (isCancelled()) break;
final Gesture gesture = store.getGestures(name).get(0);
final Bitmap bitmap = gesture.toBitmap(mThumbnailSize, mThumbnailSize,
mThumbnailInset, mPathColor);