mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-22 01:02:16 -05:00
don't require "://" in URL, only require ":" -> works for tel:12345 URLs
use ActionDial instead of ActionView for tel: URLs
This commit is contained in:
parent
64e265b2be
commit
1c7535c8ed
@ -1066,7 +1066,7 @@ namespace keepass2android
|
||||
if (url == null) return false;
|
||||
|
||||
// Default http:// if no protocol specified
|
||||
if (!url.Contains("://"))
|
||||
if ((!url.Contains(":") || (url.StartsWith("www."))))
|
||||
{
|
||||
url = "http://" + url;
|
||||
}
|
||||
|
@ -103,7 +103,9 @@ namespace keepass2android
|
||||
else
|
||||
{
|
||||
Uri uri = Uri.Parse(url);
|
||||
context.StartActivity(new Intent(Intent.ActionView, uri));
|
||||
context.StartActivity(new Intent(
|
||||
url.StartsWith("tel:") ? Intent.ActionDial : Intent.ActionView,
|
||||
uri));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user