mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-24 01:32:16 -05:00
Temporary disable of master key id extraction from uri
This commit is contained in:
parent
21e6110b6d
commit
6d00ca7fdb
@ -124,13 +124,13 @@ public class ProviderHelper {
|
|||||||
*/
|
*/
|
||||||
public static long getMasterKeyId(Context context, Uri queryUri) throws NotFoundException {
|
public static long getMasterKeyId(Context context, Uri queryUri) throws NotFoundException {
|
||||||
// try extracting from the uri first
|
// try extracting from the uri first
|
||||||
String firstSegment = queryUri.getPathSegments().get(1);
|
// String firstSegment = queryUri.getPathSegments().get(1);
|
||||||
if(!firstSegment.equals("find")) try {
|
// if(!firstSegment.equals("find")) try {
|
||||||
return Long.parseLong(firstSegment);
|
// return Long.parseLong(firstSegment);
|
||||||
} catch(NumberFormatException e) {
|
// } catch(NumberFormatException e) {
|
||||||
// didn't work? oh well.
|
// // didn't work? oh well.
|
||||||
Log.d(Constants.TAG, "Couldn't get masterKeyId from URI, querying...");
|
// Log.d(Constants.TAG, "Couldn't get masterKeyId from URI, querying...");
|
||||||
}
|
// }
|
||||||
Object data = getGenericData(context, queryUri, KeyRings.MASTER_KEY_ID, FIELD_TYPE_INTEGER);
|
Object data = getGenericData(context, queryUri, KeyRings.MASTER_KEY_ID, FIELD_TYPE_INTEGER);
|
||||||
if(data != null) {
|
if(data != null) {
|
||||||
return (Long) data;
|
return (Long) data;
|
||||||
|
Loading…
Reference in New Issue
Block a user