mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Add Billing API and Google API availability error dialogs.
This commit is contained in:
committed by
Greyson Parrelli
parent
0713a88ddb
commit
2a90809ba3
@@ -21,6 +21,16 @@ public final class PlayStoreUtil {
|
||||
}
|
||||
}
|
||||
|
||||
public static void openPlayStoreHome(@NonNull Context context) {
|
||||
try {
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.android.vending"));
|
||||
intent.setPackage("com.android.vending");
|
||||
context.startActivity(intent);
|
||||
} catch (android.content.ActivityNotFoundException e) {
|
||||
CommunicationActions.openBrowserLink(context, "https://play.google.com/store/apps/");
|
||||
}
|
||||
}
|
||||
|
||||
private static void openPlayStore(@NonNull Context context) {
|
||||
String packageName = context.getPackageName();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user