Ask for reviews

This commit is contained in:
M66B
2019-12-26 18:57:15 +01:00
parent 5b91b8ee8d
commit 053d0704b8
6 changed files with 154 additions and 26 deletions

View File

@@ -324,6 +324,13 @@ public class Helper {
return new Intent(Intent.ACTION_VIEW, Uri.parse(XDA_URI));
}
static Intent getIntentRate(Context context) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + BuildConfig.APPLICATION_ID));
if (intent.resolveActivity(context.getPackageManager()) == null)
intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + BuildConfig.APPLICATION_ID));
return intent;
}
// Graphics
static int dp2pixels(Context context, int dp) {