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

feat: share app details on social platforms #534

Merged
merged 7 commits into from
Dec 14, 2019
Merged

feat: share app details on social platforms #534

merged 7 commits into from
Dec 14, 2019

Conversation

tanmayrauth
Copy link
Contributor

@tanmayrauth tanmayrauth commented Nov 16, 2019

Feat #533
It will be a button in navigation drawer that will help users to share details about the application across various social media. So that their friends can also get to know about this app and download it.

Changes: changes were made in navigation drawer of the the app. A new share button is added.

Screenshots for the change:
device-2019-11-16-225932
device-2019-11-16-230102

@@ -103,4 +104,6 @@
<string name="clipart_saved_error">Error in saving Clipart</string>
<string name="drawer_saved_cliparts">Saved Cliparts</string>
<string name="no_gps_enabled">No GPS Found, Please Enable GPS from Settings</string>

<string name="share_msg">Badge Magic is an Android app to control LED name badges. This app provides features to portray names, graphics and simple animations on LED badges. \nI really loved this application, even you can download it from below link \nhttps://play.google.com/store/apps/details?id=org.fossasia.badgemagic</string>
Copy link
Member

Choose a reason for hiding this comment

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

I think the "I really love this application" part is not needed over here. Please frame a better message without it.

Copy link
Member

@yashk2000 yashk2000 left a comment

Choose a reason for hiding this comment

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

Also please fix the failing travis build.

@@ -122,6 +122,13 @@ class DrawerActivity : BaseActivity(), NavigationView.OnNavigationItemSelectedLi
R.id.buy -> {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://sg.pslab.io")))
}
R.id.share_app_details -> {
val shareIntent = Intent()
shareIntent.type = getString(R.string.share_msg)
Copy link
Member

Choose a reason for hiding this comment

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

Wrong, set proper type

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah i was testing what was wrong

shareIntent.type = getString(R.string.share_msg)
shareIntent.action = Intent.ACTION_SEND
shareIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.share_msg))
startActivity(Intent.createChooser(shareIntent, getString(R.string.share_msg)))
Copy link
Member

Choose a reason for hiding this comment

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

Why are you setting title to share_msg

@tanmayrauth
Copy link
Contributor Author

Now the travis build is fixed @yashk2000. Can you please merge it

Copy link
Collaborator

@adityastic adityastic left a comment

Choose a reason for hiding this comment

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

@tanmayrauth well done, you're pull request will help people spread awareness about our app. We also follow semantic naming while submitting a pr. We can name this pr with a feat prefix as this is a new feature, and the description is perfect. Hence, it can be renamed to "feat: share app details on social platforms"

@adityastic adityastic changed the title Share app details across social media feature feat: share app details on social platforms Dec 14, 2019
@auto-label auto-label bot added the feature label Dec 14, 2019
@iamareebjamal iamareebjamal merged commit 398be79 into fossasia:development Dec 14, 2019
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.

4 participants