Project

General

Profile

« Previous | Next » 

Revision c0f27889

Added by Leszek Koltunski almost 4 years ago

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!

View differences:

src/main/java/org/distorted/examples/deferredjob/DeferredJobActivity.java
24 24
import android.os.Bundle;
25 25
import android.view.View;
26 26
import android.widget.Button;
27
import android.widget.CheckBox;
28 27

  
29 28
import org.distorted.examples.R;
30 29
import org.distorted.library.main.DistortedLibrary;
......
45 44
    @Override
46 45
    protected void onPause() 
47 46
      {
47
      super.onPause();
48 48
      GLSurfaceView view = this.findViewById(R.id.deferredjobSurfaceView);
49 49
      view.onPause();
50 50
      DistortedLibrary.onPause();
51
      super.onPause();
52 51
      }
53 52

  
54 53
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff