-
Notifications
You must be signed in to change notification settings - Fork 20
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
Remove Useless Toasts and Other Minor Changes #12
Conversation
@@ -29,6 +30,9 @@ fun openWebPage(context: Context, webpage: String) { | |||
context.startActivity(intent) | |||
} catch (e: ActivityNotFoundException) { | |||
// Define what your app should do if no activity can handle the intent. | |||
Toast.makeText(context, context.getString(R.string.no_browser_found), Toast.LENGTH_SHORT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Tonnie-Dev, This method does not handle the browser. It seems and Am I missing anything here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the correction, Did this without thinking much about it, will edit out the Toasts
@@ -40,6 +44,9 @@ fun openEmailToOption(context: Context, emailId: String) { | |||
context.startActivity(intent) | |||
} catch (e: ActivityNotFoundException) { | |||
// Define what your app should do if no activity can handle the intent. | |||
Toast.makeText(context, context.getString(R.string.no_email_app_found), Toast.LENGTH_SHORT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Tonnie-Dev, I appreciate your effort. Would returning the error message and handling it on the client/caller end make sense?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tonnie-Dev Actually you are right, this is not the correct approach, I will edit my commits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way have you set out Buy Me Coffee Account, Have learnt great deal from this repo and I would like to thank you personally 🙏🏽
Remove Toasts from ContextExt.kt file
Add IntermediateScreen for Preview
To remove redundant 'return` keyword
openWebPage()
function on ContextExt.kt fileselectAllThisAccount()
onAccountSelectionViewModel