src/com/beem/project/beem/service/BeemChatManager.java
changeset 846 0d5d1d7735ca
parent 844 8005cd552571
child 853 49e6af1887f7
equal deleted inserted replaced
845:84cc7ee4b067 846:0d5d1d7735ca
    60 import android.os.RemoteException;
    60 import android.os.RemoteException;
    61 import android.preference.PreferenceManager;
    61 import android.preference.PreferenceManager;
    62 import android.util.Log;
    62 import android.util.Log;
    63 
    63 
    64 import com.beem.project.beem.BeemService;
    64 import com.beem.project.beem.BeemService;
    65 import com.beem.project.beem.R;
       
    66 import com.beem.project.beem.service.aidl.IChat;
    65 import com.beem.project.beem.service.aidl.IChat;
    67 import com.beem.project.beem.service.aidl.IChatManager;
    66 import com.beem.project.beem.service.aidl.IChatManager;
    68 import com.beem.project.beem.service.aidl.IChatManagerListener;
    67 import com.beem.project.beem.service.aidl.IChatManagerListener;
    69 import com.beem.project.beem.service.aidl.IMessageListener;
    68 import com.beem.project.beem.service.aidl.IMessageListener;
    70 import com.beem.project.beem.service.aidl.IRoster;
    69 import com.beem.project.beem.service.aidl.IRoster;
   268 	}
   267 	}
   269 
   268 
   270 	/**
   269 	/**
   271 	 * Set a notification of a new chat.
   270 	 * Set a notification of a new chat.
   272 	 * @param chat The chat to access by the notification
   271 	 * @param chat The chat to access by the notification
       
   272 	 * @param msgBody the body of the new message
   273 	 */
   273 	 */
   274 	private void notifyNewChat(IChat chat, String msgBody) {
   274 	private void notifyNewChat(IChat chat, String msgBody) {
   275 	    SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(mService);
   275 	    SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(mService);
   276 	    try {
   276 	    try {
   277 		CharSequence tickerText = mService.getBind().getRoster().getContact(chat.getParticipant().getJID())
   277 		CharSequence tickerText = mService.getBind().getRoster().getContact(chat.getParticipant().getJID())