make active work for fragments
Merge pull request #7 from jaspervp/fragmentResume2

make active work for fragments