Fixed potential memory leak with context

Should be using the ApplicationContext rather than the passed in one so
that we don't keep a hard reference to an Activity that might go out of
scope.