Fix URL
All checks were successful
apk / build (push) Successful in 1m39s

This commit is contained in:
Michel Roux 2023-07-31 22:52:05 +02:00
parent 85a06b6b5f
commit 26a802d52b

View File

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