Revision c0f27889
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/save/SaveActivity.java | ||
---|---|---|
79 | 79 |
@Override |
80 | 80 |
protected void onPause() |
81 | 81 |
{ |
82 |
super.onPause(); |
|
82 | 83 |
GLSurfaceView view = findViewById(R.id.saveSurfaceView); |
83 | 84 |
view.onPause(); |
84 |
|
|
85 | 85 |
DistortedLibrary.onPause(); |
86 |
super.onPause(); |
|
87 | 86 |
} |
88 | 87 |
|
89 | 88 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
92 | 91 |
protected void onResume() |
93 | 92 |
{ |
94 | 93 |
super.onResume(); |
95 |
|
|
96 | 94 |
GLSurfaceView view = findViewById(R.id.saveSurfaceView); |
97 | 95 |
view.onResume(); |
98 | 96 |
|
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!