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/multiblur/MultiblurActivity.java
116 116
    @Override
117 117
    protected void onPause() 
118 118
      {
119
      GLSurfaceView view = this.findViewById(R.id.multiblurSurfaceView);
119
      super.onPause();
120
      GLSurfaceView view = findViewById(R.id.multiblurSurfaceView);
120 121
      view.onPause();
121 122
      DistortedLibrary.onPause();
122
      super.onPause();
123 123
      }
124 124

  
125 125
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff