title: MVVM shared prefs in a remote class
body: <p>So I'm implementing my first Android project with the MVVM pattern by following the official Android docs schema (below) and other internet resources.</p>
  
  <p><img src="https://developer.android.com/topic/libraries/architecture/images/final-architecture.png" alt="MVVM schema"> </p>
  
  <p>In another activity I used a <strong><em>PreferenceFragmentCompat</em></strong> to save some user settings. Now I need those settings in a <strong><em>Remote data source</em></strong> class, but without the context I can't access the Shared Prefs.</p>
  
  <p>Any suggestion on how to accomplish that?</p>
  
  <p>P.S. I'm using Java...</p>