mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-26 21:13:01 +00:00
enabled instant support for FAQ
This commit is contained in:
parent
6a76edd101
commit
d4c868c1e4
1 changed files with 7 additions and 3 deletions
|
@ -30,9 +30,9 @@ import com.vanced.manager.ui.fragments.SettingsFragmentDirections
|
|||
import com.vanced.manager.utils.*
|
||||
import com.vanced.manager.utils.AppUtils.faqpkg
|
||||
import com.vanced.manager.utils.AppUtils.log
|
||||
import com.vanced.manager.utils.AppUtils.playStorePkg
|
||||
import com.vanced.manager.utils.PackageHelper.isPackageInstalled
|
||||
|
||||
|
||||
class MainActivity : AppCompatActivity() {
|
||||
|
||||
lateinit var binding: ActivityMainBinding
|
||||
|
@ -124,8 +124,12 @@ class MainActivity : AppCompatActivity() {
|
|||
}
|
||||
} else {
|
||||
Intent(Intent.ACTION_VIEW).apply {
|
||||
data = Uri.parse("https://play.google.com/store/apps/details?id=$faqpkg")
|
||||
setPackage("com.android.vending")
|
||||
val uriBuilder = Uri.parse("https://play.google.com/store/apps/details")
|
||||
.buildUpon()
|
||||
.appendQueryParameter("id", faqpkg)
|
||||
.appendQueryParameter("launch", "true")
|
||||
data = uriBuilder.build()
|
||||
setPackage(playStorePkg)
|
||||
}
|
||||
}
|
||||
startActivity(intent)
|
||||
|
|
Loading…
Reference in a new issue