mirror of
https://github.com/gsantner/dandelion
synced 2025-09-10 10:49:42 +02:00
Update and improve buildscript
This commit is contained in:
parent
255c6d650e
commit
28dac50d84
5 changed files with 90 additions and 46 deletions
|
@ -543,18 +543,4 @@ public class ContextUtils {
|
|||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public void showRateOnGplayDialog() {
|
||||
String pkgId = "details?id=" + _context.getPackageName();
|
||||
Intent goToMarket = new Intent(Intent.ACTION_VIEW, Uri.parse("market://" + pkgId));
|
||||
goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY |
|
||||
(Build.VERSION.SDK_INT >= 21 ? Intent.FLAG_ACTIVITY_NEW_DOCUMENT : Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET) |
|
||||
Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
|
||||
try {
|
||||
_context.startActivity(goToMarket);
|
||||
} catch (ActivityNotFoundException e) {
|
||||
_context.startActivity(new Intent(Intent.ACTION_VIEW,
|
||||
Uri.parse("http://play.google.com/store/apps/" + pkgId)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue