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/movingglow/MovingGlowActivity.java
44 44
    @Override
45 45
    protected void onPause() 
46 46
      {
47
      super.onPause();
47 48
      mView.onPause();
48 49
      DistortedLibrary.onPause();
49
      super.onPause();
50 50
      }
51 51

  
52 52
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff