Project

General

Profile

« Previous | Next » 

Revision 55e6be1d

Added by Leszek Koltunski almost 3 years ago

Abstract the part that controls the 'Locked' and 'Back Moves' buttons from the two activities: the main one and the tutorial one.
This code had been duplicated there.

View differences:

src/main/java/org/distorted/screens/RubikScreenSolution.java
28 28
import android.widget.LinearLayout;
29 29
import android.widget.TextView;
30 30

  
31
import org.distorted.helpers.MovesFinished;
32
import org.distorted.helpers.TransparentImageButton;
31 33
import org.distorted.main.R;
32 34
import org.distorted.main.RubikActivity;
33 35
import org.distorted.main.RubikPreRender;
......
36 38

  
37 39
///////////////////////////////////////////////////////////////////////////////////////////////////
38 40

  
39
public class RubikScreenSolution extends RubikScreenAbstract implements RubikPreRender.ActionFinishedListener
41
public class RubikScreenSolution extends RubikScreenAbstract implements MovesFinished
40 42
  {
41 43
  private static final int MILLIS_PER_DEGREE = 6;
42 44

  

Also available in: Unified diff