fix date in key choice adapter
This commit is contained in:
@@ -210,10 +210,15 @@ public class KeyChoiceAdapter extends FlexibleAdapter<KeyChoiceItem> {
|
|||||||
vName.setText(keyInfo.name());
|
vName.setText(keyInfo.name());
|
||||||
|
|
||||||
Context context = vCreation.getContext();
|
Context context = vCreation.getContext();
|
||||||
String dateTime = DateUtils.formatDateTime(context, keyInfo.creation(),
|
if (keyInfo.has_any_secret() || keyInfo.has_duplicate()) {
|
||||||
DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_TIME |
|
String dateTime = DateUtils.formatDateTime(context, keyInfo.creation() * 1000,
|
||||||
DateUtils.FORMAT_SHOW_YEAR | DateUtils.FORMAT_ABBREV_MONTH);
|
DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_SHOW_TIME |
|
||||||
vCreation.setText(context.getString(R.string.label_key_created, dateTime));
|
DateUtils.FORMAT_SHOW_YEAR | DateUtils.FORMAT_ABBREV_MONTH);
|
||||||
|
vCreation.setText(context.getString(R.string.label_key_created, dateTime));
|
||||||
|
vCreation.setVisibility(View.VISIBLE);
|
||||||
|
} else {
|
||||||
|
vCreation.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
|
||||||
switch (choiceMode) {
|
switch (choiceMode) {
|
||||||
case Mode.IDLE: {
|
case Mode.IDLE: {
|
||||||
|
|||||||
Reference in New Issue
Block a user