Commit 6d9868a4 authored by Govind Dixit's avatar Govind Dixit

minor changes

parent b6496508
......@@ -93,11 +93,9 @@ class SettingsFragment : Fragment(), SettingsView, AdapterView.OnItemClickListen
private fun startAppPlayStore() {
try {
fun getMarketAppLink()= getString(R.string.market_link)
startActivity(Intent(Intent.ACTION_VIEW, getMarketAppLink().toUri()))
startActivity(Intent(Intent.ACTION_VIEW, getString(R.string.market_link).toUri()))
} catch (error: ActivityNotFoundException) {
fun getMarketWebLink() = getString(R.string.play_store_link)
startActivity(Intent(Intent.ACTION_VIEW, getMarketWebLink().toUri()))
startActivity(Intent(Intent.ACTION_VIEW, getString(R.string.play_store_link).toUri()))
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment