Project

General

Profile

« Previous | Next » 

Revision 3398a606

Added by Leszek Koltunski over 2 years ago

Important bugfix

View differences:

src/main/java/org/distorted/screens/RubikScreenPlay.java
472 472
    }
473 473

  
474 474
///////////////////////////////////////////////////////////////////////////////////////////////////
475
// This is necessary! Otherwise the ObjectPopup will not be re-created next time and we will still
476
// hold a reference to the old instance of the RubikActivity class (because setupObjectWindow is not
477
// going to be called)
478
// An reference to the old instance of RubikActivity will cause all sorts of strange issues.
475 479

  
476 480
  public void savePreferences(SharedPreferences.Editor editor)
477 481
    {
482
    if( mObjectPopup!=null )
483
      {
484
      mObjectPopup.dismiss();
485
      mObjectPopup = null;
486
      }
478 487

  
488
    if( mMenuPopup!=null )
489
      {
490
      mMenuPopup.dismiss();
491
      mMenuPopup = null;
492
      }
493

  
494
    if( mPlayPopup!=null )
495
      {
496
      mPlayPopup.dismiss();
497
      mPlayPopup = null;
498
      }
479 499
    }
480 500

  
481 501
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff