From d806f5e9cd7adb14bcd2abeda0e60962ec53f310 Mon Sep 17 00:00:00 2001 From: Mario Muniz Date: Wed, 25 Apr 2018 10:39:14 -0700 Subject: [PATCH] Prevent Shared message from appearing on Android before event is shared --- android/app/build.gradle | 2 +- app/views/common/ShareContent.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 2c05f80fc..917d34f13 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -103,7 +103,7 @@ android { applicationId "edu.ucsd" minSdkVersion 16 targetSdkVersion 22 - versionCode 45 + versionCode 46 versionName "5.6" ndk { abiFilters "armeabi-v7a", "x86" diff --git a/app/views/common/ShareContent.js b/app/views/common/ShareContent.js index a13fd1fd2..aa2f3c57b 100644 --- a/app/views/common/ShareContent.js +++ b/app/views/common/ShareContent.js @@ -1,5 +1,5 @@ import React from 'react' -import { Text, Share } from 'react-native' +import { Text, Share, Platform } from 'react-native' import Toast from 'react-native-simple-toast' import css from '../../styles/css' @@ -19,7 +19,7 @@ class ShareContent extends React.Component { } _showResult = (result) => { - if (result.action === Share.sharedAction) { + if (result.action === Share.sharedAction && Platform.OS === 'ios') { Toast.showWithGravity('Shared', Toast.SHORT, Toast.CENTER) } }