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

Replaced Terms and conditions and Privacy statment dialogs with link to web page #799

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

cdhiraj40
Copy link
Contributor

fixes #589

@cdhiraj40
Copy link
Contributor Author

Record_2021-08-26-20-17-09.mp4

@asaikarthikeya asaikarthikeya self-requested a review August 27, 2021 08:28
.subscribe(tou -> LOG.info("Closed Dialog"));
}
private void showTermsOfUseBrowser() {
String TOUwebpage = "https://envirocar.org/TermsOfUse.html?lng=en"; //TOU-->TermsOfUse
Copy link
Member

Choose a reason for hiding this comment

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

Currently app supports 2 languages. By setting URL this way, App always opens english terms and conditions. I would suggest you to find another alternate approach by with we can direct to the URL based on the language present in the App. https://envirocar.org/TermsOfUse.html?lng=de

Copy link
Contributor Author

@cdhiraj40 cdhiraj40 Aug 27, 2021

Choose a reason for hiding this comment

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

@asaikarthikeya umm if I do

if Locale.getDefault().getLanguage() returns "de" then I can do 
the above link you mentioned 
else or else if ("en") then  english link

but to test i will have to run the version in german, can you guide me on where can I get that?

@cdhiraj40
Copy link
Contributor Author

@asaikarthikeya i have made requested changes, you can checkout

@cdhiraj40
Copy link
Contributor Author

sorry, by mistake mention.

@cdhiraj40
Copy link
Contributor Author

@asaikarthikeya Can you review this PR so I can make a new PR for #795 ?

@asaikarthikeya
Copy link
Member

Hello @DhirajChauhan40, Develop has been updated just now. You can rebase this PR on top of the new changes in develop. And regarding #795, There is some code added in this updated develop which helps in closing keyboard on background click ( see pr #775 ) . May be you can reuse some part of this code. Thanks ;-)

TOUintent.setData(Uri.parse(TOUwebpage));
startActivity(TOUintent);
}
} else if (Locale.getDefault().getLanguage() == "de"){
Copy link
Member

Choose a reason for hiding this comment

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

Use else instead of else if.

startActivity(condintent);
}
}
else if(Locale.getDefault().getLanguage() == "de") {
Copy link
Member

Choose a reason for hiding this comment

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

Same

@cdhiraj40
Copy link
Contributor Author

@asaikarthikeya I have made the requested changes you can review now. Thanks.

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