title: How to use setOnPreferenceChangeListener for QuietlyCoding NumberPicker?
body: <p>I want to detect when the value from the <code>NumberPicker</code> is changed. I have this code on my <code>PreferenceActivity</code>:</p>
  
  <pre><code>public class MainPrefs extends PreferenceActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          this.addPreferencesFromResource(R.xml.main_preferences);
          this.findPreference("SMSSentLimit").setOnPreferenceChangeListener(
              new OnPreferenceChangeListener() {
  
                  @Override
                  public boolean onPreferenceChange(Preference preference,
                          Object newValue) {
                      TrackerService.updateStats(Long.decode(newValue.toString()));
                      return true;
                  }
              });
          this.findPreference("NumberPickerLimit").setOnPreferenceChangeListener(
              new Preference.OnPreferenceChangeListener() {
  
                  @Override
                  public boolean onPreferenceChange(Preference preference,
                          Object newValue) {
                      Log.i("onPreferenceChange", "NumberPicker Changed");
                      Toast.makeText(getBaseContext(), "CHANGEEEED !!!",
                          Toast.LENGTH_SHORT).show();
                      return true;
                  }
              });
      }
  }
  </code></pre>
  
  <p>The second one (<code>findPreference("NumberPickerLimit")</code>) is the <code>NumberPicker</code> and it is never called, if I change it to <code>onPreferenceClickListener</code> it works but I detect when I click the preference instead when I change the value. </p>
  
  <p>Acording to source code it should be called:</p>
  
  <pre><code>public void onClick(DialogInterface dialog, int which) {
          switch (which) {
              case DialogInterface.BUTTON_POSITIVE:
                  saveValue(mPicker.getCurrent());
                  break;
              default:
                  break;
          }
      }
  
  private void saveValue(int val) {
      getEditor().putInt(getKey(), val).commit();
      notifyChanged();
  }
  </code></pre>
  
  <p>What´s happening? Is it a bug?</p>
  
  <p><strong>EDIT</strong>
  Here is my XML:</p>
  
  <pre><code>&lt;com.michaelnovakjr.numberpicker.NumberPickerPreference
              android:key="NumberPickerLimit"
              android:title="@string/NumberPickerTitle"
              android:summary="@string/NumberPickerSummary"
              picker:defaultValue="1"
              picker:startRange="1"
              picker:endRange="31" /&gt;
  </code></pre>