From 12d2f20dada0a6a7eff3990bc32b917123ed790c Mon Sep 17 00:00:00 2001 From: mmk2410 Date: Tue, 19 May 2015 18:25:00 +0200 Subject: [PATCH] Bugfix: Sharing didn't work; Version 2.2.3 --- app/build.gradle | 4 ++-- .../java/de/marcelkapfer/morseconverter/MainActivity.java | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 1c9ed32..1b31dc5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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 { diff --git a/app/src/main/java/de/marcelkapfer/morseconverter/MainActivity.java b/app/src/main/java/de/marcelkapfer/morseconverter/MainActivity.java index bb812c6..cea23af 100644 --- a/app/src/main/java/de/marcelkapfer/morseconverter/MainActivity.java +++ b/app/src/main/java/de/marcelkapfer/morseconverter/MainActivity.java @@ -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))); }