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/deform/DeformActivity.java
66 66
    @Override
67 67
    protected void onPause() 
68 68
      {
69
      super.onPause();
69 70
      DeformSurfaceView view = findViewById(R.id.deformSurfaceView);
70

  
71
      DistortedLibrary.onPause();
72 71
      view.onPause();
73
      super.onPause();
72
      DistortedLibrary.onPause();
74 73
      }
75 74

  
76 75
///////////////////////////////////////////////////////////////////////////////////////////////////
......
79 78
    protected void onResume() 
80 79
      {
81 80
      super.onResume();
82
      
83 81
      GLSurfaceView view = findViewById(R.id.deformSurfaceView);
84 82
      view.onResume();
85 83
      }

Also available in: Unified diff