How to handle this?
# android
a
How to handle this?
d
why not val context = base?.let{LocaleManager.instance.onAttach(it)}
a
Using base?.let{..} it is showing same suggestion # smart cast to android.content.Context
l
and what is wrong?
a
Nothing is wrong. But it is showing suggestions i should smart cast base to ..Context
Means there is better way to do it?
r
Nothing is wrong. It's just saying since, your case statement is checking if base is equal to null, base got smart casted from android.content.Context? To android.content.Context
a
Okay. Thanks