title: Set Edit Text Preference Title on "OK" click
body: <p>I'm using this code to apply the editTextPreference title when the user put a value inside the box.
  The problem is that when I click on "ok" it doesn't change the title but only if I re-click on the editTextPreference it applies the before-written value.</p>
  
  <pre><code>public void handleTEST(){
    final EditTextPreference pref = (EditTextPreference)findPreference("test");       
      pref.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener(){   
          @Override
          public boolean onPreferenceClick(Preference preference) {
              pref.setTitle(pref.getText());
  
              return true;
          }
      });
  
  }
  </code></pre>
  
  <p>So how can I apply the title on "OK" click?</p>