mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-21 13:18:52 +01:00
Added installation referrer
This commit is contained in:
@@ -537,6 +537,7 @@ public class SettingsFragment extends PreferenceFragment implements Preference.O
|
|||||||
case SHOULD_I_ANSWER:
|
case SHOULD_I_ANSWER:
|
||||||
final String packageName = "org.mistergroup.muzutozvednout";
|
final String packageName = "org.mistergroup.muzutozvednout";
|
||||||
if (!PackageUtils.isAppInstalled(mContext, packageName)) {
|
if (!PackageUtils.isAppInstalled(mContext, packageName)) {
|
||||||
|
String referrer="referrer=utm_source%3Dqksms%26utm_medium%3Dapp%26utm_campaign%3Dqksmssettings";
|
||||||
new QKDialog()
|
new QKDialog()
|
||||||
.setContext(mContext)
|
.setContext(mContext)
|
||||||
.setTitle(R.string.dialog_should_i_answer_title)
|
.setTitle(R.string.dialog_should_i_answer_title)
|
||||||
@@ -544,9 +545,9 @@ public class SettingsFragment extends PreferenceFragment implements Preference.O
|
|||||||
.setNegativeButton(R.string.cancel, null)
|
.setNegativeButton(R.string.cancel, null)
|
||||||
.setPositiveButton(R.string.okay, v -> {
|
.setPositiveButton(R.string.okay, v -> {
|
||||||
try {
|
try {
|
||||||
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + packageName)));
|
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + packageName + "&" + referrer)));
|
||||||
} catch (android.content.ActivityNotFoundException anfe) {
|
} catch (android.content.ActivityNotFoundException anfe) {
|
||||||
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + packageName)));
|
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + packageName + "&" + referrer)));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.show();
|
.show();
|
||||||
|
|||||||
Reference in New Issue
Block a user