diff --git a/app/src/main/java/com/example/dessertclicker/MainActivity.kt b/app/src/main/java/com/example/dessertclicker/MainActivity.kt index d606256..575ef18 100644 --- a/app/src/main/java/com/example/dessertclicker/MainActivity.kt +++ b/app/src/main/java/com/example/dessertclicker/MainActivity.kt @@ -129,7 +129,7 @@ private fun shareSoldDessertsInformation(intentContext: Context, dessertsSold: I val shareIntent = Intent.createChooser(sendIntent, null) try { - ContextCompat.startActivity(intentContext, shareIntent, null) + intentContext.startActivity(shareIntent) } catch (e: ActivityNotFoundException) { Toast.makeText( intentContext,