mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-06-21 22:20:11 -04:00
Turned a crash into a log message in case there is no aplication to handle http links
This commit is contained in:
@@ -109,7 +109,11 @@ abstract public class CredentialsDialogBuilder {
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
Intent i = new Intent(Intent.ACTION_VIEW);
|
||||
i.setData(Uri.parse(APP_PASSWORDS_URL));
|
||||
context.startActivity(i);
|
||||
if (i.resolveActivity(context.getPackageManager()) != null) {
|
||||
context.startActivity(i);
|
||||
} else {
|
||||
Log.e(getClass().getName(), "No application available to handle http links... very strange");
|
||||
}
|
||||
android.os.Process.killProcess(android.os.Process.myPid());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user