Fixed a bug when activity was resumed

Nothing would have been shown. Now it works. Voilá.