Not able to fetch the activity context in google maps fragment while setting setMylocationenable(true)

Trying to fecth the current location in the fragment. While getting the permission, not abot to get the activity context. I am getting the activty context in other fragments, but do not know why it shows the error for