-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Implement missing targets in link opener
- Loading branch information
Showing
4 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -408,7 +408,7 @@ private fun sendEmail( | |
) { | ||
val intent = Intent(Intent.ACTION_SENDTO) | ||
intent.data = Uri.parse("mailto:") | ||
intent.putExtra(Intent.EXTRA_EMAIL, "[email protected]") | ||
intent.putExtra(Intent.EXTRA_EMAIL, arrayOf("[email protected]")) | ||
intent.putExtra(Intent.EXTRA_SUBJECT, "Menza problem report") | ||
intent.putExtra(Intent.EXTRA_TEXT, text) | ||
try { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2023, Petr Laštovička as Lasta apps, All rights reserved | ||
* Copyright 2024, Petr Laštovička as Lasta apps, All rights reserved | ||
* | ||
* This file is part of Menza. | ||
* | ||
|
@@ -31,13 +31,14 @@ import cz.lastaapps.core.domain.model.AppSocial.PLAY_STORE_APP | |
import cz.lastaapps.core.domain.model.AppSocial.PLAY_STORE_DEVELOPER | ||
import cz.lastaapps.core.domain.model.AppSocial.TELEGRAM | ||
import cz.lastaapps.core.util.providers.LinkOpener | ||
import cz.lastaapps.core.util.providers.writeEmail | ||
|
||
class OpenAppSocialUC internal constructor( | ||
private val link: LinkOpener, | ||
) { | ||
operator fun invoke(social: AppSocial) = | ||
when (social) { | ||
EMAIL -> link.writeEmail("[email protected]") | ||
EMAIL -> link.writeEmail("[email protected]", null, null) | ||
FACEBOOK -> link.openFacebookPage("https://www.facebook.com/lastaapps/") | ||
GITHUB_ISSUES -> link.openLink("https://github.com/Lastaapps/menza/issues") | ||
GITHUB_DEVELOPER -> link.openLink("https://github.com/lastaapps/") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters