-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
59 additions
and
23 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright (c) 2024. Kotect Company, https://kotect.com | ||
* Main Programmer: Karim Abdallah | ||
* contact: [email protected] | ||
*/ | ||
|
||
package co.encept.muqataa | ||
|
||
object Consts { | ||
const val KOTECT_NAME = "Kotect" | ||
const val KOTECT_EMAIL = "[email protected]" | ||
const val KARIM_EMAIL = "[email protected]" | ||
|
||
const val PRIVACY_POLICY = "https://github.com/karim-eg/muqataa/blob/main/privacy-policy.md" | ||
const val KOTECT_GOOGLE_PLAY = "https://play.google.com/store/apps/dev?id=6033125290854254520" | ||
|
||
const val KOTECT_LINK = "https://kotect.com" | ||
const val KOTECT_GITHUB = "https://github.com/kotect-ltd" | ||
const val KOTECT_FACEBOOK = "https://www.facebook.com/kotect.ltd" | ||
const val KOTECT_LINKEDIN = "https://www.linkedin.com/company/kotect" | ||
|
||
const val KARIM_GITHUB = "https://github.com/karim-eg" | ||
const val KARIM_FACEBOOK = "https://www.facebook.com/karim.abdallah.dev" | ||
const val KARIM_LINKEDIN = "https://www.linkedin.com/in/karim-abdallah-dev" | ||
} |
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 |
---|---|---|
|
@@ -14,6 +14,8 @@ import android.view.LayoutInflater | |
import android.view.View | ||
import android.view.ViewGroup | ||
import androidx.browser.customtabs.CustomTabsIntent | ||
import co.encept.muqataa.Consts | ||
import co.encept.muqataa.R | ||
import co.encept.muqataa.databinding.FragmentAboutBinding | ||
import com.google.android.gms.ads.AdRequest | ||
|
||
|
@@ -29,56 +31,56 @@ class AboutFragment : Fragment() { | |
|
||
|
||
imgKotWeb.setOnClickListener { | ||
openBrowser("https://kotect.com", requireContext()) | ||
openBrowser(Consts.KOTECT_LINK, requireContext()) | ||
} | ||
|
||
imgKotGithub.setOnClickListener { | ||
openBrowser("https://github.com/kotect-ltd", requireContext()) | ||
openBrowser(Consts.KOTECT_GITHUB, requireContext()) | ||
} | ||
|
||
imgKotFb.setOnClickListener { | ||
openBrowser("https://www.facebook.com/kotect.ltd", requireContext()) | ||
openBrowser(Consts.KOTECT_FACEBOOK, requireContext()) | ||
} | ||
|
||
imgKotLinkedin.setOnClickListener { | ||
openBrowser("https://www.linkedin.com/company/kotect", requireContext()) | ||
openBrowser(Consts.KOTECT_LINKEDIN, requireContext()) | ||
} | ||
|
||
|
||
imgKotEmail.setOnClickListener { | ||
val intent = Intent(Intent.ACTION_SENDTO) | ||
intent.data = Uri.parse("mailto:[email protected]") | ||
intent.putExtra(Intent.EXTRA_SUBJECT, "Contact Kotect Company") | ||
startActivity(Intent.createChooser(intent, "Send Email")) | ||
intent.data = Uri.parse("mailto:${Consts.KOTECT_EMAIL}") | ||
intent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.contact_kotect_company)) | ||
startActivity(Intent.createChooser(intent, getString(R.string.send_email))) | ||
} | ||
|
||
|
||
imgGithub.setOnClickListener { | ||
openBrowser("https://github.com/karim-eg", requireContext()) | ||
openBrowser(Consts.KARIM_GITHUB, requireContext()) | ||
} | ||
|
||
imgFb.setOnClickListener { | ||
openBrowser("https://www.facebook.com/karim.abdallah.dev", requireContext()) | ||
openBrowser(Consts.KARIM_FACEBOOK, requireContext()) | ||
} | ||
|
||
imgLinkedin.setOnClickListener { | ||
openBrowser("https://www.linkedin.com/in/karim-abdallah-dev", requireContext()) | ||
openBrowser(Consts.KARIM_LINKEDIN, requireContext()) | ||
} | ||
|
||
imgEmail.setOnClickListener { | ||
val intent = Intent(Intent.ACTION_SENDTO) | ||
intent.data = Uri.parse("mailto:[email protected]") | ||
intent.putExtra(Intent.EXTRA_SUBJECT, "Contact Muqataa Developer") | ||
startActivity(Intent.createChooser(intent, "Send Email")) | ||
intent.data = Uri.parse("mailto:${Consts.KARIM_EMAIL}") | ||
intent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.contact_muqataa_developer)) | ||
startActivity(Intent.createChooser(intent, getString(R.string.send_email))) | ||
} | ||
|
||
|
||
btnPrivacy.setOnClickListener { | ||
openBrowser("https://github.com/karim-eg/muqataa/blob/main/privacy-policy.md", requireContext()) | ||
openBrowser(Consts.PRIVACY_POLICY, requireContext()) | ||
} | ||
|
||
btnMoreApps.setOnClickListener { | ||
openBrowser("https://play.google.com/store/apps/dev?id=6033125290854254520", requireContext()) | ||
openBrowser(Consts.KOTECT_GOOGLE_PLAY, requireContext()) | ||
} | ||
} | ||
|
||
|
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