Bugfix: Sharing didn't work; Version 2.2.3
This commit is contained in:
parent
7750803cd7
commit
12d2f20dad
2 changed files with 3 additions and 5 deletions
|
@ -8,8 +8,8 @@ android {
|
|||
applicationId "de.marcelkapfer.morseconverter"
|
||||
minSdkVersion 11
|
||||
targetSdkVersion 22
|
||||
versionCode 222
|
||||
versionName "2.2.2"
|
||||
versionCode 223
|
||||
versionName "2.2.3"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
|
|
|
@ -338,11 +338,9 @@ public class MainActivity extends MaterialNavigationDrawer implements BillingPro
|
|||
}
|
||||
|
||||
public void share(String string){
|
||||
Intent intent = getIntent();
|
||||
String message = intent.getStringExtra(string);
|
||||
Intent sendIntent = new Intent();
|
||||
sendIntent.setAction(Intent.ACTION_SEND);
|
||||
sendIntent.putExtra(Intent.EXTRA_TEXT, message);
|
||||
sendIntent.putExtra(Intent.EXTRA_TEXT, string);
|
||||
sendIntent.setType("text/plain");
|
||||
startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.send_to)));
|
||||
}
|
||||
|
|
Reference in a new issue