Fix URL
apk / build (push) Successful in 1m39s Details

This commit is contained in:
Michel Roux 2023-07-31 22:52:05 +02:00
parent 85a06b6b5f
commit 26a802d52b
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class MainActivity extends Activity {
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(Intent.EXTRA_TEXT, fixedUrl);
sharingIntent.putExtra(Intent.EXTRA_TEXT, fixedUrl.toString());
startActivity(Intent.createChooser(sharingIntent, "Share via"));
} catch (MalformedURLException e) {
Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();