Skip to content

Commit

Permalink
fixed dropdown pop up after rotation
Browse files Browse the repository at this point in the history
update to 1.0.4
  • Loading branch information
Lesilva committed Mar 31, 2015
1 parent 511644d commit aa56747
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=1.0.3
VERSION_CODE=103
VERSION_NAME=1.0.4
VERSION_CODE=104
GROUP=com.weiwangcn.betterspinner

POM_DESCRIPTION=Android Spinner in a Better Design
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,14 @@ protected void onFocusChanged(boolean focused, int direction,
Rect previouslyFocusedRect) {
super.onFocusChanged(focused, direction, previouslyFocusedRect);
if (focused) {
performFiltering("", 0);
InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(getWindowToken(), 0);
setKeyListener(null);
dismissDropDown();
}
}

@Override
public void setOnClickListener(OnClickListener listener) {
super.setOnClickListener(listener);
performFiltering("", 0); //show everything in the list
}

@Override
public boolean onTouchEvent(MotionEvent event) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,14 @@ protected void onFocusChanged(boolean focused, int direction,
Rect previouslyFocusedRect) {
super.onFocusChanged(focused, direction, previouslyFocusedRect);
if (focused) {
performFiltering("", 0);
InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(getWindowToken(), 0);
setKeyListener(null);
dismissDropDown();
}
}

@Override
public void setOnClickListener(OnClickListener listener) {
super.setOnClickListener(listener);
performFiltering("", 0); //show everything in the list
}

@Override
public boolean onTouchEvent(MotionEvent event) {

Expand Down

0 comments on commit aa56747

Please sign in to comment.