sindrenm
06/06/2018, 6:55 AMcontext
in the TokenManager
instance. What you probably want to do is to ditch the private constructor and have one primary constructor that takes in the Context
, then retain that instance. However, be careful of memory leaks when doing this. In your case it might make more sense to pass in an Application
and grab the application context instead.