Give a useful label for the share intent (#1680)

It's better to give a useful label that would indicate what would
happen when sharing using the app rather than letting it default
to the app name.
This commit is contained in:
Kaartic Sivaraam 2018-07-22 19:26:17 +05:30 committed by neslihanturan
parent b520babb13
commit 369fe3183c
2 changed files with 3 additions and 2 deletions

View file

@ -45,7 +45,7 @@
android:name=".upload.ShareActivity"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name">
<intent-filter>
<intent-filter android:label="@string/intent_share_upload_label">
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
@ -57,7 +57,7 @@
android:name=".upload.MultipleShareActivity"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name">
<intent-filter>
<intent-filter android:label="@string/intent_share_upload_label">
<action android:name="android.intent.action.SEND_MULTIPLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />

View file

@ -7,6 +7,7 @@
<string name="app_name">Commons</string>
<string name="bullet">&#8226; </string>
<string name="menu_settings">Settings</string>
<string name="intent_share_upload_label">Upload to Commons</string>
<string name="username">Username</string>
<string name="password">Password</string>
<string name="login_credential">Log in to your Commons Beta account</string>