fixed bug where getCurrentContext() wasn't returning the current activity.