Project

General

Profile

« Previous | Next » 

Revision c0f27889

Added by Leszek Koltunski almost 4 years ago

We need to pause an Activity in the following way:

1) Activity.onPause()
2) View.onPause()
3) Library.onPause()

otherwise sometimes there are artifacts when pausing!

View differences:

src/main/java/org/distorted/examples/aroundtheworld/AroundTheWorldActivity.java
56 56
    @Override
57 57
    protected void onPause() 
58 58
      {
59
      super.onPause();
59 60
      AroundTheWorldSurfaceView view = findViewById(R.id.aroundTheWorldSurfaceView);
60 61
      view.onPause();
61 62
      DistortedLibrary.onPause();
62
      super.onPause();
63 63
      }
64 64

  
65 65
///////////////////////////////////////////////////////////////////////////////////////////////////
......
68 68
    protected void onResume() 
69 69
      {
70 70
      super.onResume();
71

  
72 71
      AroundTheWorldSurfaceView view = findViewById(R.id.aroundTheWorldSurfaceView);
73 72
      view.onResume();
74 73
      }

Also available in: Unified diff