Project

General

Profile

« Previous | Next » 

Revision 2da68298

Added by Leszek Koltunski over 2 years ago

Create the 3 Popups only on first button click - this time we can have the final screen dimensions (and also it starts faster ) Before we weree getting the screen size from before hiding navigation bars, which made the height smaller, which made the number of obejcts and levels in the popups sometimes too small!

View differences:

src/main/java/org/distorted/main/RubikActivity.java
337 337
      errDiag.show(getSupportFragmentManager(), null);
338 338
      }
339 339

  
340
///////////////////////////////////////////////////////////////////////////////////////////////////
341

  
342
    void setScreenSize(int width, int height)
343
      {
344
      mScreenWidth = width;
345
      mScreenHeight= height;
346
      }
347

  
340 348
///////////////////////////////////////////////////////////////////////////////////////////////////
341 349
// PUBLIC API
342 350
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff