Revision 05a244ad
Added by Leszek Koltunski about 4 years ago
| src/main/java/org/distorted/tutorials/TutorialActivity.java | ||
|---|---|---|
| 206 | 206 |
BlockController.onResume(); |
| 207 | 207 |
TutorialSurfaceView view = findViewById(R.id.tutorialSurfaceView); |
| 208 | 208 |
view.onResume(); |
| 209 |
restorePreferences(); |
|
| 210 | 209 |
|
| 211 | 210 |
if( mWebView!=null ) mWebView.onResume(); |
| 212 | 211 |
|
| ... | ... | |
| 226 | 225 |
DistortedLibrary.onDestroy(1); |
| 227 | 226 |
} |
| 228 | 227 |
|
| 229 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
| 230 |
|
|
| 231 |
private void restorePreferences() |
|
| 232 |
{
|
|
| 233 |
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); |
|
| 234 |
TutorialSurfaceView view = findViewById(R.id.tutorialSurfaceView); |
|
| 235 |
view.getPreRender().restorePreferences(preferences); |
|
| 236 |
} |
|
| 237 |
|
|
| 238 | 228 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 239 | 229 |
|
| 240 | 230 |
void OpenGLError() |
Also available in: Unified diff
Simplifications