Project

General

Profile

« Previous | Next » 

Revision 3b8f5220

Added by Leszek Koltunski almost 2 years ago

Improve two things in the BandagedCreator:

- when one minimizes the app and re-maximizes it, now the app remembers the state of the bandaged cube being created
- when one minimizes the app while one of th cubits is marked, it no longer gets marked the second time on re-maximizaton (which was the reason why some cubits sometimes couldn't be unmarked).

View differences:

src/main/java/org/distorted/bandaged/BandagedCreatorView.java
269 269
      if( mTouchedIndex2>=0 )
270 270
        {
271 271
        mRenderer.untouchCubit(mTouchedIndex1);
272
        mRenderer.untouchCubit(mTouchedIndex2);
273
        mRenderer.setConnecting(mTouchedIndex1,mTouchedIndex2);
272

  
273
        if( mTouchedIndex2!=mTouchedIndex1 )
274
          {
275
          mRenderer.untouchCubit(mTouchedIndex2);
276
          mRenderer.setConnecting(mTouchedIndex1,mTouchedIndex2);
277
          }
278

  
274 279
        mTouchedIndex1 = -1;
275 280
        mTouchedIndex2 = -1;
276 281
        }

Also available in: Unified diff