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/starwars/StarWarsActivity.java
45 45
  @Override
46 46
  protected void onPause() 
47 47
    {
48
    super.onPause();
48 49
    mView.onPause();
49 50
    mView.getRenderer().onPause();
50 51
    DistortedLibrary.onPause();
51
    super.onPause();
52 52
    }
53 53

  
54 54
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff