--- a/src/com/beem/project/beem/BeemService.java Fri Jun 26 21:46:16 2009 +0200
+++ b/src/com/beem/project/beem/BeemService.java Fri Jun 26 21:51:48 2009 +0200
@@ -74,10 +74,11 @@
*/
private void initConnectionConfig() {
// TODO mettre a false par defaut et remplacer les valeurs par defaut
+ java.security.Security.addProvider(new com.sun.security.sasl.Provider());
mUseProxy = mSettings.getBoolean(getString(R.string.settings_key_proxy_use), false);
if (mUseProxy) {
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.proxy_types,
- android.R.layout.simple_spinner_item);
+ android.R.layout.simple_spinner_item);
int pos = mSettings.getInt(getString(R.string.settings_key_proxy_type), 0);
String stype = adapter.getItem(pos).toString();
String phost = mSettings.getString(getString(R.string.settings_key_proxy_server), "");
@@ -147,15 +148,15 @@
public void processPacket(Packet packet) {
String from = packet.getFrom();
Notification notif = new Notification(com.beem.project.beem.R.drawable.signal,
- "Demande d'ajout", System.currentTimeMillis());
+ "Demande d'ajout", System.currentTimeMillis());
notif.defaults = Notification.DEFAULT_ALL;
notif.flags = Notification.FLAG_AUTO_CANCEL;
Intent intent = new Intent(BeemService.this, Subscription.class);
intent.putExtra("from", from);
notif
- .setLatestEventInfo(BeemService.this, from, "demande d'ajout de " + from,
- PendingIntent.getActivity(BeemService.this, 0, intent,
- PendingIntent.FLAG_ONE_SHOT));
+ .setLatestEventInfo(BeemService.this, from, "demande d'ajout de " + from,
+ PendingIntent.getActivity(BeemService.this, 0, intent,
+ PendingIntent.FLAG_ONE_SHOT));
int id = packet.hashCode();
sendNotification(id, notif);
}