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

fix session lang is null #118

Closed
wants to merge 1 commit into from
Closed

Conversation

futabooo
Copy link

@futabooo futabooo commented Feb 6, 2017

Issue

Overview (Required)

  • fix Resources$NotFoundException when session lang is null

Links

Screenshot

Before After

@konifar
Copy link
Contributor

konifar commented Feb 6, 2017

👀


public class StringUtil {

public static boolean isHalfWidthCharacters(String s) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's too much to check the characters 🤔
If lang is null, it should not be bind lang to the view and it's better to hide it like this.
#115 (comment)

What do you think?

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for review.
I hustle too much 😆
you are right!

Copy link
Contributor

Choose a reason for hiding this comment

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

Anyway, your code is interesting!! 👍
I learned the logic from your code 📝

@konifar
Copy link
Contributor

konifar commented Feb 6, 2017

Thanks for contribution! Commented 😃

if (englishTitle) {
this.languageResId = decideLanguageResId(Session.LANG_EN_ID);
}
this.languageResId = decideLanguageResId(Session.LANG_JA_ID);
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need else ?

Copy link
Author

Choose a reason for hiding this comment

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

oh,, right

@konifar
Copy link
Contributor

konifar commented Feb 6, 2017

Sorry, I'll close this PR 🙇
Thank you for your contribution!!
I would be happy if you will send another PR 🙏

@konifar konifar closed this Feb 6, 2017
@futabooo
Copy link
Author

futabooo commented Feb 6, 2017

yes, i will 💪

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