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).
This commit is contained in:
parent
61bbbf442d
commit
1f799d1ef1
@ -913,6 +913,7 @@ public class AppDetails extends ListActivity {
|
|||||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||||
intent.setDataAndType(Uri.parse("file://" + file.getPath()),
|
intent.setDataAndType(Uri.parse("file://" + file.getPath()),
|
||||||
"application/vnd.android.package-archive");
|
"application/vnd.android.package-archive");
|
||||||
|
intent.putExtra(Intent.EXTRA_NOT_UNKNOWN_SOURCE, true);
|
||||||
startActivityForResult(intent, REQUEST_INSTALL);
|
startActivityForResult(intent, REQUEST_INSTALL);
|
||||||
((FDroidApp) getApplication()).invalidateApp(id);
|
((FDroidApp) getApplication()).invalidateApp(id);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user