Slight layout change, keep id on single line
This commit is contained in:
parent
ee7706b5e9
commit
650fb911ff
|
@ -444,12 +444,14 @@ public class RemoteSelectIdKeyActivity extends FragmentActivity {
|
|||
void bind(KeyInfo keyInfo, Drawable selectionIcon) {
|
||||
Context context = vCreation.getContext();
|
||||
|
||||
String email = keyInfo.getEmail();
|
||||
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));
|
||||
} else {
|
||||
String email = keyInfo.getEmail();
|
||||
vName.setText(context.getString(R.string.use_key, email));
|
||||
vName.setText(context.getString(R.string.use_key_no_name));
|
||||
}
|
||||
|
||||
String dateTime = DateUtils.formatDateTime(context, keyInfo.getCreationDate(),
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:maxLines="1"
|
||||
android:ellipsize="end"
|
||||
tools:text="Use key: look@my.amazin.horse"
|
||||
/>
|
||||
|
||||
|
|
Loading…
Reference in a new issue