From 1f799d1ef1a9f37b72cb05d2e1b9e41c9a451d1b Mon Sep 17 00:00:00 2001 From: Rene Treffer <treffer@measite.de> Date: Sun, 16 Mar 2014 13:52:05 +0100 Subject: [PATCH] Say that f-droid is not an unknown source. This property will be ignored if f-droid is not installed as priv-app, but it _will_ skip the "you have to enable unknown sources" dialog if f-droid is installed as priv-app. There is thus no gain in keeping it as is (false). --- src/org/fdroid/fdroid/AppDetails.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/fdroid/fdroid/AppDetails.java b/src/org/fdroid/fdroid/AppDetails.java index 2e8f49867..9f5eb2d14 100644 --- a/src/org/fdroid/fdroid/AppDetails.java +++ b/src/org/fdroid/fdroid/AppDetails.java @@ -913,6 +913,7 @@ public class AppDetails extends ListActivity { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("file://" + file.getPath()), "application/vnd.android.package-archive"); + intent.putExtra(Intent.EXTRA_NOT_UNKNOWN_SOURCE, true); startActivityForResult(intent, REQUEST_INSTALL); ((FDroidApp) getApplication()).invalidateApp(id); }