Switch to IntentBuilder's constructor for specifying parameters

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-04-18 18:29:05 +05:30
parent 3fe0ea719e
commit f54e1e13ad

View File

@@ -62,7 +62,7 @@ fun Context.browse(url: String) {
fun Context.share(app: App) { fun Context.share(app: App) {
try { try {
ShareCompat.IntentBuilder.from(this as AppCompatActivity) ShareCompat.IntentBuilder(this as AppCompatActivity)
.setType("text/plain") .setType("text/plain")
.setChooserTitle(getString(R.string.action_share)) .setChooserTitle(getString(R.string.action_share))
.setSubject(app.displayName) .setSubject(app.displayName)