Revision c0f27889
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/triblur/TriblurActivity.java | ||
---|---|---|
123 | 123 |
@Override |
124 | 124 |
protected void onPause() |
125 | 125 |
{ |
126 |
super.onPause(); |
|
126 | 127 |
GLSurfaceView view = findViewById(R.id.triblurSurfaceView); |
127 | 128 |
view.onPause(); |
128 | 129 |
DistortedLibrary.onPause(); |
129 |
super.onPause(); |
|
130 | 130 |
} |
131 | 131 |
|
132 | 132 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
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!