Slight layout change, keep id on single line
This commit is contained in:
@@ -444,12 +444,14 @@ public class RemoteSelectIdKeyActivity extends FragmentActivity {
|
|||||||
void bind(KeyInfo keyInfo, Drawable selectionIcon) {
|
void bind(KeyInfo keyInfo, Drawable selectionIcon) {
|
||||||
Context context = vCreation.getContext();
|
Context context = vCreation.getContext();
|
||||||
|
|
||||||
|
String email = keyInfo.getEmail();
|
||||||
String name = keyInfo.getName();
|
String name = keyInfo.getName();
|
||||||
if (name != null) {
|
if (email != null) {
|
||||||
|
vName.setText(context.getString(R.string.use_key, email));
|
||||||
|
} else if (name != null) {
|
||||||
vName.setText(context.getString(R.string.use_key, name));
|
vName.setText(context.getString(R.string.use_key, name));
|
||||||
} else {
|
} else {
|
||||||
String email = keyInfo.getEmail();
|
vName.setText(context.getString(R.string.use_key_no_name));
|
||||||
vName.setText(context.getString(R.string.use_key, email));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String dateTime = DateUtils.formatDateTime(context, keyInfo.getCreationDate(),
|
String dateTime = DateUtils.formatDateTime(context, keyInfo.getCreationDate(),
|
||||||
|
|||||||
@@ -30,6 +30,8 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:ellipsize="end"
|
||||||
tools:text="Use key: look@my.amazin.horse"
|
tools:text="Use key: look@my.amazin.horse"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user