Fix a little bug with chat notifications
authorDa Risk <darisk972@gmail.com>
Sat, 13 Feb 2010 18:36:10 +0100
changeset 660 2cec95b3068f
parent 659 234e13ea0826
child 661 c6f9f2fcaf06
Fix a little bug with chat notifications
src/com/beem/project/beem/service/BeemChatManager.java
src/com/beem/project/beem/ui/LoginAnim.java
--- a/src/com/beem/project/beem/service/BeemChatManager.java	Sat Feb 13 17:34:14 2010 +0100
+++ b/src/com/beem/project/beem/service/BeemChatManager.java	Sat Feb 13 18:36:10 2010 +0100
@@ -222,9 +222,10 @@
 	    return result;
 	}
 	Chat c = mAdaptee.createChat(key, null);
-	result = new ChatAdapter(c);
+	// maybe a little probleme of thread synchronization
+	// if so use an HashTable instead of a HashMap for mChats
+	result = getChat(c);
 	result.addMessageListener(listener);
-	mChats.put(key, result);
 	return result;
     }
 
--- a/src/com/beem/project/beem/ui/LoginAnim.java	Sat Feb 13 17:34:14 2010 +0100
+++ b/src/com/beem/project/beem/ui/LoginAnim.java	Sat Feb 13 18:36:10 2010 +0100
@@ -209,7 +209,6 @@
 
 	@Override
 	protected void onProgressUpdate(Integer ... values) {
-	    Log.d(TAG, "onProgress " + values[0]);
 	    mLoginState.setText(getResources().getStringArray(R.array.loganim_state)[values[0]]);
 	}