Fix BadTokenException when trying to show the UpdateDialog after activity is closed
Merge pull request #562 from illarionov/fixUpdateDialog

Fix BadTokenException from UpdateDialog (@illarionov)