Revision c0f27889
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/examples/rubik/RubikActivity.java | ||
---|---|---|
51 | 51 |
@Override |
52 | 52 |
protected void onPause() |
53 | 53 |
{ |
54 |
super.onPause(); |
|
54 | 55 |
GLSurfaceView view = findViewById(R.id.rubikSurfaceView); |
55 | 56 |
view.onPause(); |
56 | 57 |
DistortedLibrary.onPause(); |
57 |
super.onPause(); |
|
58 | 58 |
} |
59 | 59 |
|
60 | 60 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
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!