Improve UI, take "dirty" check into account, move launcher to Main.java
[jvcard.git] / src / be / nikiroo / jvcard / tui / panes / ContactDetails.java
index 2cd1403b1c5270772f2842f57eff64a60e7a1a9b..c1e86c3d1fca92fbda2798a7bc16aae2542b92e9 100644 (file)
@@ -48,8 +48,15 @@ public class ContactDetails extends MainContent {
 
        @Override
        public String getTitle() {
-               // TODO Auto-generated method stub
-               return null;
+               String title = null;
+
+               if (contact != null) {
+                       title = contact.getPreferredDataValue("FN");
+                       if (title == null || title.length() == 0)
+                               title = contact.getPreferredDataValue("N");
+               }
+
+               return title;
        }
 
        @Override