Permalink
Browse files

Fix for wrong selection of sms template

This patch fix a wrong selection of the sms template when the user performs two different gestures

Change-Id: I4e9d15fc779f6a270421f78c4aed3cd90c0cd01d
Signed-off-by: Riccardo Ciovati <rciovati@gmail.com>
  • Loading branch information...
1 parent 502cd00 commit 379e235531c03aa5df79c2a5ec876628cad32b6e @rciovati rciovati committed with May 6, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/com/android/mms/ui/ComposeMessageActivity.java
View
1 src/com/android/mms/ui/ComposeMessageActivity.java
@@ -4140,6 +4140,7 @@ public void onGesturePerformed(GestureOverlayView overlay, Gesture gesture) {
if (prediction.score > mGestureSensitivity) {
Bundle b = new Bundle();
b.putLong("id", Long.parseLong(prediction.name));
+ getLoaderManager().destroyLoader(LOAD_TEMPLATE_BY_ID);
getLoaderManager().initLoader(LOAD_TEMPLATE_BY_ID, b, this);
}
}

0 comments on commit 379e235

Please sign in to comment.