Fix 5835642: Only finish the page when it's still active.

The original code can call finishState twice in a row with the calling
stack: finishState -> onPause -> clearLoadingBit -> finishState.

Change clearLoadingBit to call finishState only when it's currently active.

Change-Id: I537dbdd6ce26b26aeb565e243c4168229d4a70ef
3 files changed
tree: 6862f9ece05f4227e4e79f32e52d8f458d54fae9
  1. gallerycommon/
  2. src/
  3. src_pd/
  4. tests/