Project

General

Profile

« Previous | Next » 

Revision cc88f2fa

Added by Leszek Koltunski almost 3 years ago

Give visual indication when dragging is locked.

View differences:

src/main/java/org/distorted/main/RubikSurfaceView.java
342 342
        else
343 343
          {
344 344
          final RubikActivity act = (RubikActivity)getContext();
345

  
346
          mDragging           = (!act.isLocked() || mIsAutomatic);
345
          final boolean locked= act.isLocked();
346
          mDragging           = (!locked || mIsAutomatic);
347 347
          mBeginningRotation  = false;
348 348
          mContinuingRotation = false;
349

  
350
          if( locked )
351
            {
352
            RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass();
353
            play.reddenLock(act);
354
            }
349 355
          }
350 356
        }
351 357
      }

Also available in: Unified diff