Project

General

Profile

« Previous | Next » 

Revision 01d34e10

Added by Leszek Koltunski over 7 years ago

Fix the 'Save' app so that the saving thread does not run all the time in a tight loop

View differences:

src/main/java/org/distorted/examples/save/SaveActivity.java
75 75
  @Override
76 76
  protected void onPause() 
77 77
    {
78
    SaveWorkerThread.stopSending();
79

  
80 78
    GLSurfaceView view = (GLSurfaceView) this.findViewById(R.id.saveSurfaceView);
81 79
    view.onPause();
82 80
      
......
93 91
    GLSurfaceView view = (GLSurfaceView) this.findViewById(R.id.saveSurfaceView);
94 92
    view.onResume();
95 93

  
96
    SaveWorkerThread.startSending(this);
94
    SaveWorkerThread.create(this);
97 95
    }
98 96
 
99 97
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff