title: Update preference screen UI manually
body: <p>I've got a setting screen with preferences in my app. </p>
  
  <p>I use PreferenceFragmentCompat and usual AppCompatActivity. When I change state of some preference(f.e. SwitchPreferenceCompat) and tap on it then the Android preference framework will change its internal state and upgrade preference UI. Thats pretty good.</p>
  
  <p>In one usecase I have to change internal preference state manually and then I must change preference UI manually but I didn't find any <strong>invalidate</strong>-method to upgrade preference-UI.</p>
  
  <p>I load preference screen with its children and them states in <strong>onCreatePreferences</strong></p>
  
  <pre><code>override fun onCreatePreferences(bundle: Bundle?, rootKey: String?) {
  
      setPreferencesFromResource(R.xml.preferences, rootKey)
  
  }
  </code></pre>
  
  <p>but when I return on that screen(after another activity is finished) I should refresh preference-UI according to its new internal state.</p>
  
  <p>Is there anyone who khows how to do it manually (I'm aware that this workflow is not native)?</p>