To fix, I have made the Context type more specific as Activity everywhere necessary. I also used FLAG_ACTIVITY_NEW_TASK in one place, Preferences, to avoid the possibility of this error. In CustomActionProvider I now have 2 context objects (one needs to be themed).
To fix, I have made the Context type more specific as Activity everywhere necessary. I also used FLAG_ACTIVITY_ NEW_TASK in one place, Preferences, to avoid the possibility of this error. In CustomActionPro vider I now have 2 context objects (one needs to be themed).