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/RubikSurfaceView.java
49 49
      mScreenWidth = width;
50 50
      mScreenHeight= height;
51 51
      mObjectController.setScreenSize(width,height);
52

  
53
      try
54
        {
55
        RubikActivity act = (RubikActivity)getContext();
56
        act.setScreenSize(width,height);
57
        }
58
      catch( Exception ex )
59
        {
60
        android.util.Log.e("D", "Failed to set screen size!");
61
        }
52 62
      }
53 63

  
54 64
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff