diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index c775434b6..cb470a6e4 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -105,15 +105,41 @@
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/org/fdroid/fdroid/compat/ContextCompat.java b/src/org/fdroid/fdroid/compat/ContextCompat.java
deleted file mode 100644
index f8e5104dd..000000000
--- a/src/org/fdroid/fdroid/compat/ContextCompat.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package org.fdroid.fdroid.compat;
-
-import java.io.File;
-
-import android.annotation.TargetApi;
-import android.content.Context;
-import android.os.Environment;
-
-public abstract class ContextCompat extends Compatibility {
-
- public static ContextCompat create(Context context) {
- if (hasApi(8)) {
- return new FroyoContextCompatImpl(context);
- } else {
- return new OldContextCompatImpl(context);
- }
- }
-
- protected final Context context;
-
- public ContextCompat(Context context) {
- this.context = context;
- }
-
- /**
- * @see android.content.Context#getExternalCacheDir()
- */
- public abstract File getExternalCacheDir();
-
-}
-
-class OldContextCompatImpl extends ContextCompat {
-
- public OldContextCompatImpl(Context context) {
- super(context);
- }
-
- @Override
- public File getExternalCacheDir() {
- File file = new File(Environment.getExternalStorageDirectory(),
- "Android/data/org.fdroid.fdroid/cache");
- if (!file.exists())
- file.mkdirs();
- return file;
- }
-
-}
-
-@TargetApi(8)
-class FroyoContextCompatImpl extends ContextCompat {
-
- public FroyoContextCompatImpl(Context context) {
- super(context);
- }
-
- @Override
- public File getExternalCacheDir() {
- return context.getExternalCacheDir();
- }
-
-}
diff --git a/src/org/fdroid/fdroid/data/NewRepoConfig.java b/src/org/fdroid/fdroid/data/NewRepoConfig.java
index a3f0ed5ac..4e0eb7795 100644
--- a/src/org/fdroid/fdroid/data/NewRepoConfig.java
+++ b/src/org/fdroid/fdroid/data/NewRepoConfig.java
@@ -5,6 +5,7 @@ import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.text.TextUtils;
+import android.util.Log;
import org.fdroid.fdroid.R;
import java.util.Arrays;
@@ -12,6 +13,8 @@ import java.util.Locale;
public class NewRepoConfig {
+ private static final String TAG = "org.fdroid.fdroid.data.NewRepoConfig";
+
private String errorMessage;
private boolean isValidRepo = false;
@@ -41,6 +44,8 @@ public class NewRepoConfig {
return;
}
+ Log.d(TAG, "Parsing incoming intent looking for repo: " + incomingUri);
+
// scheme and host should only ever be pure ASCII aka Locale.ENGLISH
scheme = uri.getScheme();
host = uri.getHost();