commit 80218b07d0fa80df9b6f9cc3ee76f8d7172509a7
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Sun Oct 25 23:30:35 2020 +0000

    Progress with the Info Dialog

diff --git a/src/main/java/org/distorted/dialogs/RubikDialogInfo.java b/src/main/java/org/distorted/dialogs/RubikDialogInfo.java
index 751ea2b9..1a024804 100644
--- a/src/main/java/org/distorted/dialogs/RubikDialogInfo.java
+++ b/src/main/java/org/distorted/dialogs/RubikDialogInfo.java
@@ -37,6 +37,8 @@ import androidx.fragment.app.FragmentActivity;
 
 import org.distorted.main.R;
 import org.distorted.main.RubikActivity;
+import org.distorted.main.RubikPreRender;
+import org.distorted.objects.TwistyObject;
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
@@ -54,17 +56,28 @@ public class RubikDialogInfo extends AppCompatDialogFragment
     act.getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
     final float titleSize= displaymetrics.widthPixels * RubikActivity.MENU_BIG_TEXT_SIZE;
     final float okSize   = displaymetrics.widthPixels * RubikActivity.DIALOG_BUTTON_SIZE;
+    TwistyObject object = getObject();
+    int numLayers = object.getNumLayers();
 
     TextView tv = (TextView) inflater.inflate(R.layout.dialog_title, null);
     tv.setTextSize(TypedValue.COMPLEX_UNIT_PX, titleSize);
-    tv.setText(R.string.opengl_error);
+    tv.setText(object.getObjectName(numLayers));
     builder.setCustomTitle(tv);
 
     final View view = inflater.inflate(R.layout.dialog_error, null);
     TextView text = view.findViewById(R.id.error_string);
-    text.setText(R.string.opengl_error_text);
+    text.setText(R.string.tutorial);
 
-    builder.setPositiveButton( R.string.ok, new DialogInterface.OnClickListener()
+    builder.setPositiveButton( R.string.yes, new DialogInterface.OnClickListener()
+      {
+      @Override
+      public void onClick(DialogInterface dialog, int which)
+        {
+
+        }
+      });
+
+    builder.setNegativeButton( R.string.no, new DialogInterface.OnClickListener()
       {
       @Override
       public void onClick(DialogInterface dialog, int which)
@@ -92,9 +105,19 @@ public class RubikDialogInfo extends AppCompatDialogFragment
         {
         Button btnPositive = ((AlertDialog)dialog).getButton(Dialog.BUTTON_POSITIVE);
         btnPositive.setTextSize(TypedValue.COMPLEX_UNIT_PX, okSize);
+        Button btnNegative = ((AlertDialog)dialog).getButton(Dialog.BUTTON_NEGATIVE);
+        btnNegative.setTextSize(TypedValue.COMPLEX_UNIT_PX, okSize);
         }
       });
 
     return dialog;
     }
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+  private TwistyObject getObject()
+    {
+    RubikActivity act = (RubikActivity)getContext();
+    return act.getObject();
+    }
   }
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index 071102e4..1245f6b8 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -35,6 +35,8 @@
     <string name="new_name_try_again">The name you have chosen, %s, is already taken. Try again:</string>
     <string name="downloading">Downloading…</string>
     <string name="submitting">Submitting…</string>
+    <string name="tutorial">Learn how to solve it?</string>
+
     <string name="credits1">Open Source app developed using the Distorted graphics library. Licensed under <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html">GPL version 2</a> or - at your option - any later version.</string>
     <string name="credits2">Pretty Patterns by Walter Randelshofer. See <a href="http://www.randelshofer.ch">http://www.randelshofer.ch</a></string>
     <string name="credits3">Download code, take a look at tutorials, learn how to add your own graphics effect, learn how to code your own object, contribute a Pretty Pattern, implement your own solver, or report a bug: \n\n<a href="https://distorted.org/redmine/projects/magic-cube/wiki">Distorted.org</a></string>
