diff --git a/res/layout/about.xml b/res/layout/about.xml
index 7915e6c8a..3a349422e 100644
--- a/res/layout/about.xml
+++ b/res/layout/about.xml
@@ -1,22 +1,21 @@
-
+ android:layout_height="match_parent">
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+ android:visibility="gone"
+ android:layout_gravity="center">
-
+
+
+
+
+
+
+
+
+
diff --git a/res/layout/call_inactive_row.xml b/res/layout/call_inactive_row.xml
index baa4c7470..7b1986e2a 100644
--- a/res/layout/call_inactive_row.xml
+++ b/res/layout/call_inactive_row.xml
@@ -3,43 +3,56 @@
android:background="@color/colorG"
android:layout_height="60dp"
android:layout_width="match_parent"
- android:layout_margin="2dp"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:padding="5dp">
+ android:orientation="vertical">
-
+
-
+
-
-
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/res/layout/chatlist.xml b/res/layout/chatlist.xml
index b2025751d..726691929 100644
--- a/res/layout/chatlist.xml
+++ b/res/layout/chatlist.xml
@@ -36,7 +36,7 @@
android:layout_width="70dp"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
- android:padding="15dp"/>
+ android:padding="12dp"/>
diff --git a/res/layout/history.xml b/res/layout/history.xml
index 9cdff700a..d7f441c49 100644
--- a/res/layout/history.xml
+++ b/res/layout/history.xml
@@ -16,7 +16,7 @@
android:id="@+id/all_calls"
android:src="@drawable/history_all_button"
android:contentDescription="@string/content_description_all_calls"
- android:padding="15dp"
+ android:padding="12dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"/>
@@ -24,7 +24,7 @@
android:id="@+id/missed_calls"
android:src="@drawable/history_missed_button"
android:contentDescription="@string/content_description_missed_calls"
- android:padding="15dp"
+ android:padding="12dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
diff --git a/res/layout/history_detail.xml b/res/layout/history_detail.xml
index 9275c2317..b0c31eef4 100644
--- a/res/layout/history_detail.xml
+++ b/res/layout/history_detail.xml
@@ -7,17 +7,17 @@
@@ -141,7 +142,7 @@
android:src="@drawable/footer_chat"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:padding="15dp"
+ android:padding="18dp"
android:layout_centerInParent="true" />
+ android:layout_height="50dp">
() {
+ @Override
+ public int compare(Contact a, Contact b) {
+ return a.getName().toLowerCase().compareTo(b.getName().toLowerCase());
+ }
+ });
+
}
contactCursor = getFriendListCursor(contactList,true);
@@ -708,7 +720,6 @@ public class ContactsManager {
public Cursor getFriendListCursor(List contacts, boolean shouldGroupBy){
String[] columns = new String[] { ContactsContract.Data.CONTACT_ID, ContactsContract.Data.DISPLAY_NAME };
-
if (!shouldGroupBy) {
return null;
}
diff --git a/src/org/linphone/HistoryDetailFragment.java b/src/org/linphone/HistoryDetailFragment.java
index 1fff7ebe7..ac6958489 100644
--- a/src/org/linphone/HistoryDetailFragment.java
+++ b/src/org/linphone/HistoryDetailFragment.java
@@ -17,15 +17,13 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-import java.text.SimpleDateFormat;
-import java.util.Calendar;
+
import org.linphone.core.LinphoneAddress;
import org.linphone.core.LinphoneCoreException;
import org.linphone.core.LinphoneCoreFactory;
import org.linphone.core.LinphoneFriend;
-import android.annotation.SuppressLint;
import android.net.Uri;
import android.os.Bundle;
import android.app.Fragment;
@@ -73,12 +71,7 @@ public class HistoryDetailFragment extends Fragment implements OnClickListener {
//addToContacts.setOnClickListener(this);
contactPicture = (ImageView) view.findViewById(R.id.contact_picture);
-
contactName = (TextView) view.findViewById(R.id.contact_name);
- if (displayName == null) {
- displayName = LinphoneUtils.getUsernameFromAddress(sipUri);
- }
-
contactAddress = (TextView) view.findViewById(R.id.contact_address);
callDirection = (TextView) view.findViewById(R.id.direction);
@@ -92,13 +85,6 @@ public class HistoryDetailFragment extends Fragment implements OnClickListener {
}
private void displayHistory(String status, String callTime, String callDate) {
- contactName.setText(displayName == null ? sipUri : displayName);
- if (displayName == null) {
- contactAddress.setText(LinphoneUtils.getUsernameFromAddress(sipUri));
- } else {
- contactAddress.setText(sipUri);
- }
-
time.setText(callTime == null ? "" : callTime);
Long longDate = Long.parseLong(callDate);
date.setText(LinphoneUtils.timestampToHumanDate(getActivity(),longDate,getString(R.string.history_detail_date_format),false));
@@ -107,10 +93,16 @@ public class HistoryDetailFragment extends Fragment implements OnClickListener {
try {
lAddress = LinphoneCoreFactory.instance().createLinphoneAddress(sipUri);
//Obiane specification
- LinphoneFriend friend = ContactsManager.getInstance().findLinphoneFriend(lAddress);
+ LinphoneFriend friend = LinphoneManager.getLc().findFriendByAddress(sipUri);
+
+ if(friend != null) {
+ contactName.setText(LinphoneUtils.getAddressDisplayName(friend.getAddress()));
+ } else {
+ contactName.setText(LinphoneUtils.getAddressDisplayName(lAddress));
+ }
- contactName.setText(LinphoneUtils.getAddressDisplayName(lAddress));
contactPicture.setImageResource(R.drawable.avatar);
+ contactAddress.setText(lAddress.asStringUriOnly());
} catch (LinphoneCoreException e) {
e.printStackTrace();
}
diff --git a/src/org/linphone/HistoryListFragment.java b/src/org/linphone/HistoryListFragment.java
index c8e2755c2..0f39eba75 100644
--- a/src/org/linphone/HistoryListFragment.java
+++ b/src/org/linphone/HistoryListFragment.java
@@ -421,8 +421,14 @@ public class HistoryListFragment extends Fragment implements OnClickListener, On
holder.callDirection.setImageResource(R.drawable.call_status_outgoing);
}
+ LinphoneFriend friend = LinphoneManager.getLc().findFriendByAddress(address.asStringUriOnly());
holder.contactPicture.setImageResource(R.drawable.avatar);
- holder.contact.setText(LinphoneUtils.getAddressDisplayName(address));
+
+ if(friend != null) {
+ holder.contact.setText(LinphoneUtils.getAddressDisplayName(friend.getAddress()));
+ } else {
+ holder.contact.setText(LinphoneUtils.getAddressDisplayName(address));
+ }
if (isEditMode) {
holder.select.setVisibility(View.VISIBLE);
diff --git a/src/org/linphone/LinphoneManager.java b/src/org/linphone/LinphoneManager.java
index 16534228f..f581782f9 100644
--- a/src/org/linphone/LinphoneManager.java
+++ b/src/org/linphone/LinphoneManager.java
@@ -652,6 +652,7 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag
mLc.setRootCA(mLinphoneRootCaFile);
mLc.setPlayFile(mPauseSoundFile);
mLc.setChatDatabasePath(mChatDatabaseFile);
+ mLc.setRingback(mRingbackSoundFile);
//mLc.setCallLogsDatabasePath(mCallLogDatabaseFile);
//mLc.setCallErrorTone(Reason.NotFound, mErrorToneFile);