Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timob-15506: fix editText layout issue for header/footerView #4797

Merged
merged 2 commits into from Oct 18, 2013

Conversation

hieupham007
Copy link
Contributor

@ghost ghost assigned pingwang2011 Oct 17, 2013
@@ -129,6 +136,10 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto
//Ok right now focus is with listView. So set it back to the focusedView
focusedView.requestFocus();
focusedView.setOnFocusChangeListener(focusListener);
//Restore cursor position
if (cursorPosition != -1) {
((EditText)focusedView).setSelection(cursorPosition);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a check for the type of focusedView, eg. if (focusedView instanceof EditText) {...}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind.

@pingwang2011
Copy link
Contributor

Code reviewed and functionally tested. Accepted

pingwang2011 added a commit that referenced this pull request Oct 18, 2013
timob-15506: fix editText layout issue for header/footerView
@pingwang2011 pingwang2011 merged commit 9ee94a5 into tidev:master Oct 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants