mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-23 23:12:06 -05:00
small fixes to the matcher
This commit is contained in:
parent
9798ef7bfd
commit
98ce06dbc9
@ -39,7 +39,7 @@ public abstract class LinkedResource {
|
|||||||
|
|
||||||
protected static LinkedCookieResource fromUri (URI uri) {
|
protected static LinkedCookieResource fromUri (URI uri) {
|
||||||
|
|
||||||
if ("pgpid+cookie".equals(uri.getScheme())) {
|
if (!"pgpid+cookie".equals(uri.getScheme())) {
|
||||||
Log.e(Constants.TAG, "unknown uri scheme in (suspected) linked id packet");
|
Log.e(Constants.TAG, "unknown uri scheme in (suspected) linked id packet");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -60,13 +60,10 @@ public abstract class LinkedResource {
|
|||||||
|
|
||||||
Set<String> flags = new HashSet<String>();
|
Set<String> flags = new HashSet<String>();
|
||||||
HashMap<String,String> params = new HashMap<String,String>();
|
HashMap<String,String> params = new HashMap<String,String>();
|
||||||
{
|
if (!pieces[0].isEmpty()) {
|
||||||
String[] rawParams = pieces[0].split(";");
|
String[] rawParams = pieces[0].split(";");
|
||||||
for (String param : rawParams) {
|
for (String param : rawParams) {
|
||||||
String[] p = param.split("=", 2);
|
String[] p = param.split("=", 2);
|
||||||
if ("".equals(p[0])) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (p.length == 1) {
|
if (p.length == 1) {
|
||||||
flags.add(param);
|
flags.add(param);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user