From 6d00ca7fdb305b43e0638d86558d1eba63d86e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Wed, 9 Apr 2014 19:57:57 +0200 Subject: Temporary disable of master key id extraction from uri --- .../keychain/provider/ProviderHelper.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'OpenKeychain/src') diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/provider/ProviderHelper.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/provider/ProviderHelper.java index 28376096d..3e0520c2a 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/provider/ProviderHelper.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/provider/ProviderHelper.java @@ -124,13 +124,13 @@ public class ProviderHelper { */ public static long getMasterKeyId(Context context, Uri queryUri) throws NotFoundException { // try extracting from the uri first - String firstSegment = queryUri.getPathSegments().get(1); - if(!firstSegment.equals("find")) try { - return Long.parseLong(firstSegment); - } catch(NumberFormatException e) { - // didn't work? oh well. - Log.d(Constants.TAG, "Couldn't get masterKeyId from URI, querying..."); - } +// String firstSegment = queryUri.getPathSegments().get(1); +// if(!firstSegment.equals("find")) try { +// return Long.parseLong(firstSegment); +// } catch(NumberFormatException e) { +// // didn't work? oh well. +// Log.d(Constants.TAG, "Couldn't get masterKeyId from URI, querying..."); +// } Object data = getGenericData(context, queryUri, KeyRings.MASTER_KEY_ID, FIELD_TYPE_INTEGER); if(data != null) { return (Long) data; -- cgit v1.2.3