Skip to content

Commit 693c37f

Browse files
ujjwalagrawal17neslihanturan
authored andcommitted
Updated share feature (commons-app#1474)
1 parent bcb90db commit 693c37f

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

app/src/main/java/fr/free/nrw/commons/AboutActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ public boolean onCreateOptionsMenu(Menu menu) {
135135
public boolean onOptionsItemSelected(MenuItem item) {
136136
switch (item.getItemId()) {
137137
case R.id.share_app_icon:
138+
String shareText = "Upload photos to Wikimedia Commons on your phone\nDownload the Commons app: http://play.google.com/store/apps/details?id=fr.free.nrw.commons";
138139
Intent sendIntent = new Intent();
139140
sendIntent.setAction(Intent.ACTION_SEND);
140-
sendIntent.putExtra(Intent.EXTRA_TEXT, "http://play.google.com/store/apps/details?id=fr.free.nrw.commons");
141+
sendIntent.putExtra(Intent.EXTRA_TEXT, shareText);
141142
sendIntent.setType("text/plain");
142143
startActivity(Intent.createChooser(sendIntent, "Share app via..."));
143144
return true;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<vector android:alpha="0.84" android:height="32dp"
1+
<vector android:alpha="0.84" android:height="24dp"
22
android:viewportHeight="24.0" android:viewportWidth="24.0"
3-
android:width="32dp" xmlns:android="http://schemas.android.com/apk/res/android">
3+
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
44
<path android:fillColor="#ffffffff" android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/>
55
</vector>

app/src/main/res/menu/menu_about.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<item
99
android:id="@+id/share_app_icon"
10-
android:title="@string/refresh_button"
10+
android:title="@string/share_app_title"
1111
android:icon="@drawable/ic_share_black_24dp"
1212
android:orderInCategory="1"
1313
app:showAsAction="ifRoom"

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,4 +270,5 @@
270270
<string name="about_translate_proceed">Proceed</string>
271271
<string name="about_translate_cancel">Cancel</string>
272272
<string name="retry">Retry</string>
273+
<string name="share_app_title">Share App</string>
273274
</resources>

0 commit comments

Comments
 (0)