Fixed a weird bug where the quickadd visibility was somehow blocking selectCustomId from working

pull/14/head
Sam Bosley 13 years ago
parent e9e5a27be6
commit 208b1c3e5f

@ -143,9 +143,14 @@ public class QuickAddBar extends LinearLayout {
quickAddBox.addTextChangedListener(new TextWatcher() { quickAddBox.addTextChangedListener(new TextWatcher() {
@Override @Override
public void onTextChanged(CharSequence s, int start, int before, int count) { public void onTextChanged(CharSequence s, int start, int before, int count) {
boolean visible = !TextUtils.isEmpty(s) && quickAddBox.hasFocus(); final boolean visible = !TextUtils.isEmpty(s) && quickAddBox.hasFocus();
boolean showControls = Preferences.getBoolean(R.string.p_show_quickadd_controls, true); final boolean showControls = Preferences.getBoolean(R.string.p_show_quickadd_controls, true);
quickAddControlsContainer.setVisibility((showControls && visible) ? View.VISIBLE : View.GONE); quickAddControlsContainer.postDelayed(new Runnable() {
@Override
public void run() {
quickAddControlsContainer.setVisibility((showControls && visible) ? View.VISIBLE : View.GONE);
}
}, 10);
} }
@Override @Override

Loading…
Cancel
Save