Revision c0f27889
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/transparency/TransparencyActivity.java | ||
---|---|---|
102 | 102 |
@Override |
103 | 103 |
protected void onPause() |
104 | 104 |
{ |
105 |
super.onPause(); |
|
105 | 106 |
GLSurfaceView view = findViewById(R.id.transparencySurfaceView); |
106 | 107 |
view.onPause(); |
107 | 108 |
DistortedLibrary.onPause(); |
108 |
super.onPause(); |
|
109 | 109 |
} |
110 | 110 |
|
111 | 111 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
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!