Revision c0f27889
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/olimpic/OlimpicActivity.java | ||
---|---|---|
141 | 141 |
@Override |
142 | 142 |
protected void onPause() |
143 | 143 |
{ |
144 |
super.onPause(); |
|
144 | 145 |
GLSurfaceView view = findViewById(R.id.olimpicSurfaceView); |
145 | 146 |
view.onPause(); |
146 | 147 |
DistortedLibrary.onPause(); |
147 |
super.onPause(); |
|
148 | 148 |
} |
149 | 149 |
|
150 | 150 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
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!