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

Aztec - Switch the Title field EditText #7021

Merged
merged 3 commits into from
Dec 22, 2017

Conversation

daniloercoli
Copy link
Contributor

@daniloercoli daniloercoli commented Dec 21, 2017

The title field in AztecEditorFragment is a AztecText object. Since there is no formatting, no advanced features on the title we can switch back to EditText.

Don't think this will fix wordpress-mobile/AztecEditor-Android#580, but didn't try.

@maxme maxme self-requested a review December 22, 2017 08:12
@maxme maxme self-assigned this Dec 22, 2017
@maxme
Copy link
Contributor

maxme commented Dec 22, 2017

This doesn't fix wordpress-mobile/AztecEditor-Android#580 - removing the input filter on the title fixes the issue.

@@ -129,7 +129,7 @@
private boolean mEditorWasPaused = false;
private boolean mHideActionBarOnSoftKeyboardUp = false;

private AztecText title;
private org.wordpress.android.editor.SourceViewEditText title;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a fan of using 2 different classes with the same name here, should we just rename the one in org.wordpress.android.editor to a more generic name since it's only a listening for IMEBack events?

@maxme
Copy link
Contributor

maxme commented Dec 22, 2017

Note: that I tried to replace the input filter with a text watcher doing the same thing to prevent newlines and it works fine with Swype.

@maxme
Copy link
Contributor

maxme commented Dec 22, 2017

Pushed a commit in here, if you want to have a look: 189e467

@daniloercoli daniloercoli merged commit f989e68 into develop Dec 22, 2017
@maxme maxme deleted the issue/Aztec-switch-title-to-EditText branch December 22, 2017 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Repeating characters in title
2 participants