commit cc48b27545ef71f286d3abec75f8811f638e4375
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Mon Nov 29 01:01:53 2021 +0100

    Progress with ConfigPane.

diff --git a/src/main/java/org/distorted/config/ConfigScreenPane.java b/src/main/java/org/distorted/config/ConfigScreenPane.java
index ad649568..6953d059 100644
--- a/src/main/java/org/distorted/config/ConfigScreenPane.java
+++ b/src/main/java/org/distorted/config/ConfigScreenPane.java
@@ -36,8 +36,6 @@ import static android.view.View.inflate;
 public class ConfigScreenPane
 {
   private static final float TEXT_RATIO = 0.015f;
-
-  private LinearLayout mDetailsLayout, mDifficultyLayout, mMeshLayout;
   private JsonReader mReader;
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
@@ -53,51 +51,52 @@ public class ConfigScreenPane
     String name = mReader.getObjectName();
     String author = mReader.getInventor();
     int year = mReader.getYearOfInvention();
+    String both = year>0 ? author+" "+year : author;
 
     LinearLayout layout = act.findViewById(R.id.configLayout);
     TextView view = layout.findViewById(R.id.configDetailsName2);
     view.setText(name);
     view = layout.findViewById(R.id.configDetailsAuthor2);
-    view.setText(author+" "+year);
+    view.setText(both);
     }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
   ConfigScreenPane(final ConfigActivity act, int objectOrdinal)
     {
-    mDetailsLayout    = (LinearLayout)inflate( act, R.layout.config_details   , null);
-    mDifficultyLayout = (LinearLayout)inflate( act, R.layout.config_difficulty, null);
-    mMeshLayout       = (LinearLayout)inflate( act, R.layout.config_mesh      , null);
+    LinearLayout detailsLayout    = (LinearLayout)inflate( act, R.layout.config_details   , null);
+    LinearLayout difficultyLayout = (LinearLayout)inflate( act, R.layout.config_difficulty, null);
+    LinearLayout meshLayout       = (LinearLayout)inflate( act, R.layout.config_mesh      , null);
 
     LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, 0, 1.0f);
-    mDetailsLayout.setLayoutParams(params);
-    mDifficultyLayout.setLayoutParams(params);
-    mMeshLayout.setLayoutParams(params);
+    detailsLayout.setLayoutParams(params);
+    difficultyLayout.setLayoutParams(params);
+    meshLayout.setLayoutParams(params);
 
     int height = act.getScreenHeightInPixels();
     float textSize = height*TEXT_RATIO;
     TextView text;
-    text = mDetailsLayout.findViewById(R.id.configDetailsTitle);
+    text = detailsLayout.findViewById(R.id.configDetailsTitle);
     text.setTextSize(textSize);
-    text = mDetailsLayout.findViewById(R.id.configDetailsName1);
+    text = detailsLayout.findViewById(R.id.configDetailsName1);
     text.setTextSize(textSize);
-    text = mDetailsLayout.findViewById(R.id.configDetailsName2);
+    text = detailsLayout.findViewById(R.id.configDetailsName2);
     text.setTextSize(textSize);
-    text = mDetailsLayout.findViewById(R.id.configDetailsAuthor1);
+    text = detailsLayout.findViewById(R.id.configDetailsAuthor1);
     text.setTextSize(textSize);
-    text = mDetailsLayout.findViewById(R.id.configDetailsAuthor2);
+    text = detailsLayout.findViewById(R.id.configDetailsAuthor2);
     text.setTextSize(textSize);
 
-    text = mDifficultyLayout.findViewById(R.id.configDifficultyTitle);
+    text = difficultyLayout.findViewById(R.id.configDifficultyTitle);
     text.setTextSize(textSize);
-    text = mMeshLayout.findViewById(R.id.configMeshTitle);
+    text = meshLayout.findViewById(R.id.configMeshTitle);
     text.setTextSize(textSize);
 
     LinearLayout layout = act.findViewById(R.id.configLayout);
     layout.removeAllViews();
-    layout.addView(mDetailsLayout);
-    layout.addView(mDifficultyLayout);
-    layout.addView(mMeshLayout);
+    layout.addView(detailsLayout);
+    layout.addView(difficultyLayout);
+    layout.addView(meshLayout);
 
     updatePane(act,objectOrdinal);
     }
