diff --git a/MyTracks/AndroidManifest.xml b/MyTracks/AndroidManifest.xml
index 6a074d09a..ec0d29e7d 100755
--- a/MyTracks/AndroidManifest.xml
+++ b/MyTracks/AndroidManifest.xml
@@ -122,11 +122,21 @@ limitations under the License.
+ android:noHistory="true">
+
+
+
+
+
+ android:noHistory="true">
+
+
+
+
+
uriPathSegments = uri.getPathSegments();
+ List basePathSegments = baseContentUri.getPathSegments();
+ if (basePathSegments.size() > uriPathSegments.size()) return false;
+ for (int i = 0; i < basePathSegments.size(); i++) {
+ if (!uriPathSegments.get(i).equals(basePathSegments.get(i))) return false;
+ }
+
+ return true;
+ }
+
+ public static boolean isFileUri(Uri uri) {
+ return "file".equals(uri.getScheme());
+ }
+
+ private UriUtils() {}
+}