* #25382 Added callbacks in JNI
* #25376 Modified handling of touch events to detect longpress
diff --git a/src/com/savoirfairelinux/sflphone/adapters/AccountSelectionAdapter.java b/src/com/savoirfairelinux/sflphone/adapters/AccountSelectionAdapter.java
index 9b9bad3..6226021 100644
--- a/src/com/savoirfairelinux/sflphone/adapters/AccountSelectionAdapter.java
+++ b/src/com/savoirfairelinux/sflphone/adapters/AccountSelectionAdapter.java
@@ -3,6 +3,8 @@
 import java.util.ArrayList;
 
 import android.content.Context;
+import android.content.Intent;
+import android.util.Log;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
@@ -102,4 +104,24 @@
         notifyDataSetChanged();
     }
 
+    /**
+     * Modify state of specific account
+     * @param accountState
+     */
+    public void updateAccount(Intent accountState) {
+        Log.i(TAG,"updateAccount");
+        String id = accountState.getStringExtra("Account");
+        String newState = accountState.getStringExtra("state");
+        accountState.getStringExtra("Account");
+        
+        for(Account a : accounts){
+            if(a.getAccountID().contentEquals(id)){
+                a.setRegistered_state(newState);
+                notifyDataSetChanged();
+                return;
+            }
+        }
+        
+    }
+
 }