Trim probable packagename, if found

This commit is contained in:
Rahul Patel
2023-10-13 05:07:31 +05:30
parent 3ed31aee19
commit cdbbebbea6

View File

@@ -227,7 +227,7 @@ class SplashFragment : BaseFragment(R.layout.fragment_splash) {
} else if (activity?.intent != null && activity?.intent?.action == Intent.ACTION_SEND) {
val clipData = requireActivity().intent.clipData?.getItemAt(0)?.text.toString()
if (clipData.contains("/store/apps/details?id=")) {
clipData.split("id=").last()
clipData.split("id=").last().trim()
} else {
""
}