/soc/2012/michael/android: d661ca77cf0b: Android threading fix f...

Michael Zangl michael at soc.pidgin.im
Wed Aug 15 06:14:15 EDT 2012


Changeset: d661ca77cf0b39d0ea0a2f599e91f5dfb64e55da
Author:	 Michael Zangl <michael at soc.pidgin.im>
Date:	 2012-08-11 11:34 +0200
Branch:	 soc.2012.android
URL: http://hg.pidgin.im/soc/2012/michael/android/rev/d661ca77cf0b

Description:

Android threading fix for message receiving.

diffstat:

 android/workspace/im.pidgin.libpurple.testclient/src/im/pidgin/libpurple/testclient/conversation/ConversationView.java |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (19 lines):

diff --git a/android/workspace/im.pidgin.libpurple.testclient/src/im/pidgin/libpurple/testclient/conversation/ConversationView.java b/android/workspace/im.pidgin.libpurple.testclient/src/im/pidgin/libpurple/testclient/conversation/ConversationView.java
--- a/android/workspace/im.pidgin.libpurple.testclient/src/im/pidgin/libpurple/testclient/conversation/ConversationView.java
+++ b/android/workspace/im.pidgin.libpurple.testclient/src/im/pidgin/libpurple/testclient/conversation/ConversationView.java
@@ -66,8 +66,13 @@ public class ConversationView implements
 
 	@Override
 	public void messageReceived(PurpleConversation purpleConversation,
-			String message) {
-		messages.append("\n" + message);
+			final String message) {
+		viewController.runOnUiThread(new Runnable() {
+			@Override
+			public void run() {
+				messages.append("\n" + message);
+			}
+		});
 	}
 
 	@Override



More information about the Commits mailing list