Fixed
Status Update
Comments
bo...@google.com <bo...@google.com> #3
d4...@gmail.com <d4...@gmail.com> #4
FYI, I took the clustering example from the Google Maps API Guides page at...
https://developers.google.com/maps/documentation/javascript/marker-clustering
... and I changed the Google Maps version to v=3.exp
... and hosted the result athttp://www.GaryLittle.ca/mc-bug.html
Load this address in your iOS browser (Safari) and try clicking any of the clusters. Nothing happens.
This code uses the old MarkerClusterer but I'm sure the behaviour will be identical if using MarkerClustererPlus.
... and I changed the Google Maps version to v=3.exp
... and hosted the result at
Load this address in your iOS browser (Safari) and try clicking any of the clusters. Nothing happens.
This code uses the old MarkerClusterer but I'm sure the behaviour will be identical if using MarkerClustererPlus.
Description
Path:
/extSdCard/_documentTest
Uri:
content://com.android.externalstorage.documents/tree/0000-0000%3A/document/0000-0000%3A_documentTest
SingleDocumentFile doesn't support any write features, so we are left with TreeDocumentFile which is created with:
public static DocumentFile fromTreeUri(Context context, Uri treeUri) {
final int version = Build.VERSION.SDK_INT;
if (version >= 21) {
return new TreeDocumentFile(null, context,
DocumentsContractApi21.prepareTreeUri(treeUri));
} else {
return null;
}
}
However DocumentsContractApi21.prepareTreeUri(treeUri) truncates the document id returning a DocumentFile pointing to:
content://com.android.externalstorage.documents/tree/0000-0000%3A/document/0000-0000%3A
This is NOT the same URI! It simply truncated this URI down to the tree root...
I cannot see a workaround without reflection into TreeDocumentFile.