clearLoadingBit(BIT_LOADING_SYNC);
}
mActionModeHandler.pause();
-
- // The camera app should always launch in capture mode when
- // resumed, so make the next resume faster by closing the grid
- // view now
- if (mInCameraAndWantQuitOnPause) {
- if (mActivity.getStateManager().getTopState() == this)
- mActivity.getStateManager().finishState(this, false);
- }
}
@Override
finishState(state, true);
}
+ public void clearTasks() {
+ // Remove all the states that are on top of the bottom PhotoPage state
+ while (mStack.size() > 1) {
+ mStack.pop().activityState.onDestroy();
+ }
+ }
+
void finishState(ActivityState state, boolean fireOnPause) {
// The finish() request could be rejected (only happens under Monkey),
// If it is rejected, we won't close the last page.