+
+ /**
+ * Read display.properties to know if we should fix the FN field when empty,
+ * or always, or never.
+ */
+ static private void readNFN() {
+ ResourceBundle map = Bundles.getBundle("display");
+ try {
+ defaultFn = map.getString("CONTACT_DETAILS_DEFAULT_FN");
+ if (defaultFn.trim().length() == 0)
+ defaultFn = null;
+ } catch (MissingResourceException e) {
+ e.printStackTrace();
+ }
+
+ try {
+ String forceComputedFnStr = map
+ .getString("CONTACT_DETAILS_SHOW_COMPUTED_FN");
+ if (forceComputedFnStr.length() > 0
+ && forceComputedFnStr.equalsIgnoreCase("true"))
+ forceComputedFn = true;
+ } catch (MissingResourceException e) {
+ e.printStackTrace();
+ }
+ }