account: don't set "Unknown" as profile name
"Unknown" is a placeholder to use at
presentation time, not as the actual profile
name that will be transmitted and saved.
This patch prevents setting a "default name"
in a vcard since the vcard can be used
without a name. If no name is available,
no name is set.
In the account list, the account alias is
showed if the profile name is not set.
Change-Id: I48cef23edc139c269fe54cd5ca8cd6de91ea6752
diff --git a/ring-android/app/src/main/res/layout/item_account.xml b/ring-android/app/src/main/res/layout/item_account.xml
index 65bb628..5d5480a 100644
--- a/ring-android/app/src/main/res/layout/item_account.xml
+++ b/ring-android/app/src/main/res/layout/item_account.xml
@@ -1,5 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (c) 2016 Savoir-faire Linux Inc.
+<?xml version="1.0" encoding="utf-8"?><!-- Copyright (c) 2016 Savoir-faire Linux Inc.
Author: Adrien Beraud <adrien.beraud@savoirfairelinux.com>
@@ -32,18 +31,19 @@
android:layout_marginRight="8dp"
tools:src="@drawable/ic_contact_picture" />
- <android.support.v7.widget.AppCompatTextView
+ <TextView
android:id="@+id/account_alias"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignParentLeft="false"
- android:layout_alignParentStart="false"
android:layout_alignParentTop="true"
android:layout_toEndOf="@+id/account_photo"
+ android:layout_toLeftOf="@+id/error_indicator"
android:layout_toRightOf="@+id/account_photo"
+ android:layout_toStartOf="@+id/error_indicator"
+ android:ellipsize="end"
android:textAppearance="@style/ListPrimary" />
- <android.support.v7.widget.AppCompatTextView
+ <TextView
android:id="@+id/account_host"
android:layout_width="wrap_content"
android:layout_height="wrap_content"