From 14c525e7ffa28513d530b5d83d5e21a448020dee Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 19 Nov 2013 23:47:05 -0500 Subject: [PATCH] add fingerprint field to Add Repo dialog, and alert if repo already exists Previously, anything added via the Add New Repository dialog would just overwrite any existing repo config that was there. This has become a bigger issue with the QR Code scanning since it could become an attack vector. This is the first step towards making this Add Repo dialog give more info to the user about the state of things, and what the user might replace by clicking OK. --- res/layout/addrepo.xml | 67 +++++++++++++++++++-------- res/values/strings.xml | 2 + res/values/styles.xml | 1 + src/org/fdroid/fdroid/ManageRepo.java | 52 ++++++++++++++++----- 4 files changed, 91 insertions(+), 31 deletions(-) diff --git a/res/layout/addrepo.xml b/res/layout/addrepo.xml index 72ab28cc4..ac4936303 100644 --- a/res/layout/addrepo.xml +++ b/res/layout/addrepo.xml @@ -1,24 +1,51 @@ - - - - - -