title: Keyword "this" doesn't work in Listener
body: <p>I call method, where one of the parameters - context, in OnPreferenceChangeListener. But when i write: "this", i get an error. I tried to write getContext() instead of this, but it's doesn't work too. Tell me, please, what i can do?</p>
  
  <pre><code>public static class MyPreferenceFragment extends PreferenceFragment {
      @Override
      public void onCreate(final Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          addPreferencesFromResource(R.xml.settings);
  
          final ListPreference lp = (ListPreference) findPreference("background");
          lp.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
              @Override
              public boolean onPreferenceChange(Preference preference, Object newValue) {
  
                  String s = String.valueOf(newValue);
  
                    /*error*/
                      DatabaseHelper.updItem(this, s, "my_appearance", "backgroundPatters", 1);
  
                  return true;
              }
          });
      }
  }
  </code></pre>