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/patterns/RubikPattern.java
19 19

  
20 20
package org.distorted.patterns;
21 21

  
22
import org.distorted.helpers.MovesFinished;
22 23
import org.distorted.main.RubikPreRender;
23 24

  
24 25
import java.util.ArrayList;
......
192 193

  
193 194
///////////////////////////////////////////////////////////////////////////////////////////////////
194 195

  
195
  private static class Pattern implements RubikPreRender.ActionFinishedListener
196
  private static class Pattern implements MovesFinished
196 197
    {
197 198
    private final String nameStr;
198 199
    private String moveStr;

Also available in: Unified diff