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/girl/GirlActivity.java
70 70
    @Override
71 71
    protected void onPause() 
72 72
      {
73
      super.onPause();
73 74
      GLSurfaceView view = findViewById(R.id.girlSurfaceView);
74 75
      view.onPause();
75

  
76 76
      DistortedLibrary.onPause();
77
      super.onPause();
78 77
      }
79 78

  
80 79
///////////////////////////////////////////////////////////////////////////////////////////////////
......
83 82
    protected void onResume() 
84 83
      {
85 84
      super.onResume();
86
      
87 85
      GLSurfaceView view = findViewById(R.id.girlSurfaceView);
88 86
      view.onResume();
89 87
      }

Also available in: Unified diff