public void enableWatcher ( TextWatcher watcher , boolean enabled ) { int index = mWatchers . indexOfValue ( watcher ) ; if ( index >= 0 ) { int key = mWatchers . keyAt ( index ) ; mEnabledKeys . put ( key , enabled ) ; } }
Enable or Disable a text watcher by reference