Hmm not sure what this is, but this result was my hunch to why it crashes when you hit back when viewing the gallery. we should just return if the activity was cancelled. just switch this if statement to <code>case</code> and uncomment and it should actually fix the bug.