Fix Activity.ts so that it compiles (for now).