86 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
126d96e4ba prevent soft keyboard from popping up on RepoDetails
Its quite annoying to have the URI EditText in focus and the soft keyboard
pop up when viewing the RepoDetails since the vast majority of the time,
the user will be viewing the info there, not editing the URL.

This commit just moves the focus to the frame, and prevents the soft
keyboard from showing up by default.  The user can still click on the URI
EditText to edit it and the soft keyboard will pop up.
2014-01-28 20:31:46 -05:00
Hans-Christoph Steiner
47659b5cec relabel misnamed items from "signature" to "repo fingerprint"
In the new Repo Details screen, there is some elements that are labels as
the "signature".  This is not quite right, it is actually referring to the
fingerprint of the repo signing key.  Since a repo will also usually have a
HTTPS certificate fingerprint, there will also be a fingerprint for that
certificate.
2014-01-21 18:30:02 -05:00
Daniel Martí
499c9e50c5 Move "https://" addrepo default into a string 2014-01-08 13:36:45 +01:00
Peter Serwylo
3731ed8f23 Merge remote-tracking branch 'upstream/master' into improvement/16/manage-repos
Conflicts:
	res/values/strings.xml
	src/org/fdroid/fdroid/DB.java
	src/org/fdroid/fdroid/ManageRepo.java
	src/org/fdroid/fdroid/RepoXMLHandler.java
	src/org/fdroid/fdroid/Utils.java
2014-01-04 20:45:52 +11:00
Peter Serwylo
ffa2c962dc Merge branch 'master' into improvement/16/manage-repos
Conflicts:
	res/layout/appdetails.xml
	res/values/strings.xml
	src/org/fdroid/fdroid/DB.java
	src/org/fdroid/fdroid/FDroid.java
	src/org/fdroid/fdroid/ManageRepo.java
2014-01-04 20:19:27 +11:00
Daniel Martí
8a90687867 Slightly larger margin separating minsdk 2014-01-03 04:47:42 +01:00
Daniel Martí
aee57c448b Sightly more margins in app list views 2014-01-03 02:52:12 +01:00
Daniel Martí
50f68d34b9 Support minSdk info in version list views 2014-01-03 02:44:24 +01:00
Daniel Martí
ab6f41ec68 More layout tweaks, fix landscape 2014-01-03 02:17:32 +01:00
Daniel Martí
cd00760cc4 Remove compact icons, replace installed with a symbol 2014-01-01 21:45:20 +01:00
Daniel Martí
771947536e Add categories to AppDetails, layout tweaks 2014-01-01 21:08:41 +01:00
Daniel Martí
e302baa340 Do paddings for the icon and not the whole applist item 2014-01-01 17:09:01 +01:00
Daniel Martí
b4cee703f2 applistitem centering tweaks 2014-01-01 02:15:27 +01:00
Daniel Martí
67ec0f748c Separate status and license from name and summary in app lists 2013-12-31 11:27:19 +01:00
Daniel Martí
e437898e33 Further fixes to layouts 2013-12-31 11:03:34 +01:00
Daniel Martí
fa02eb5733 Small tweaks to paddings and layouts 2013-12-31 11:03:34 +01:00
Daniel Martí
c306fe9157 Properly center elements in the app list views 2013-12-26 00:08:43 +01:00
Daniel Martí
e3789631ba Restructure applistitem:
* Move it to the top right corner
* Don't let the app name overlap it
* Ellipsize version names to leave space for name
* Summary can now take two lines if it needs them
* Installed versions are now bold
2013-12-25 22:46:46 +01:00
Daniel Martí
960e04d425 Merge commit 'refs/merge-requests/55' of gitorious.org:f-droid/fdroidclient 2013-12-25 19:46:09 +01:00
Peter Serwylo
8306007f84 UI tweaks for manage repos.
Padding for add repo dialog.
Move cursor to end of text input for new repo dialog.
2013-12-12 10:50:01 +11:00
Peter Serwylo
4fdc23569b Added update button to repo details screen. 2013-12-06 13:01:05 +11:00
Peter Serwylo
82af6fc60e Merge branch 'master' into improvement/16/manage-single-repo
Phew, monster merge. Going to commit after *seemingly* resolving
conflicts, but it will no doubt take a few compile and runs to sort out
any funny stuff.

Conflicts:
	AndroidManifest.xml
	res/layout/addrepo.xml
	res/layout/appdetails.xml
	res/layout/repolisticons.xml
	res/values/strings.xml
	src/org/fdroid/fdroid/DB.java
	src/org/fdroid/fdroid/FDroid.java
	src/org/fdroid/fdroid/ManageRepo.java
	src/org/fdroid/fdroid/UpdateService.java
2013-12-06 08:43:11 +11:00
Peter Serwylo
93fec74728 WIP: implementing context and action bar menus for repo management.
SwitchCompat will return a Switch or a ToggleButton depending on the
platform (doesn't matter, both are CompoundButtons) and this will be
added to the repo_item view programatically.

I'm using some pretty specific listeners
to communicate between the details fragment and the repo list activity.
I've also split the functionality (e.g. for deleting) between the repo
list and the details view. In the future, when we have content providers
for repos, it will be easier to take care of everything from the details
screen, and automatically notify the repo list of changes.

Refactored update service.
Now has a static update method that can be called which
will setup the required intent to begin the update. It also deals with
progress listeners and dialogs for the user, so all of this is moved out
of FDroid. This was so that RepoDetailsFragment can now invoke the same
functionality.
2013-12-05 13:04:33 +11:00
Hans-Christoph Steiner
c7b076e5ea add detailed checking of incoming repos based on fingerprint in DB
When a new repo is being added, whether manually or via an incoming Intent,
check the address and fingerprint against repos in the DB.  If the repo is
not in the DB, offer to add it.  If the repo address is in the DB, then do
more checks:

* If that address has no fingerprint in the DB, then offer to add the new
  repo including that fingerprint.  This might happen when upgrading a repo
  from unsigned to signed.
* if the incoming info matches a repo in the DB, offer to enable that repo
* if the address matches a repo in the DB but the incoming fingerprint does
  not match the fingerprint in the DB, warn the user, and tell them to
  delete the existing repo if they truly want to override the existing info
2013-12-02 21:50:08 -05:00
Hans-Christoph Steiner
36da418660 add CheckBox to enable overwriting of existing repos when adding new ones
The "Add" button is disabled until the user turns overwrite on.  It should
prevent accidental overwriting, but I imagine this could be handled better.
2013-11-20 00:06:12 -05:00
Hans-Christoph Steiner
14c525e7ff 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.
2013-11-20 00:06:12 -05:00
Aleksey Tulinov
d687b7341e Setting 32x32dp for compact layout, bumped summary to name 2013-11-17 22:09:04 +02:00
Aleksey Tulinov
5786d014dc Shifted summary to the right of icon to give icon more space, aligned status with license 2013-11-17 06:42:33 +02:00
Daniel Martí
5626adc574 Properly retab all layout xml files 2013-11-16 23:39:37 +01:00
Daniel Martí
a2b939d1fc AppList icons back to 40dp, AppDetails icons to real 48dp 2013-11-16 23:37:26 +01:00
Aleksey Tulinov
2ec7cb3e8d Changed app icon paddings into margins to fit 48x48dp exactly 2013-11-16 20:31:40 +02:00
Daniel Martí
c7ace4ff8e New loading/default app icon (kudos to mray) 2013-11-01 19:53:18 +01:00
Daniel Martí
e1ad61a974 More coherent apklistitem padding 2013-10-23 18:14:41 +02:00
Daniel Martí
19712433bc Always show apps with AFs; Always display AF list in bold red at top of AppDetails 2013-10-23 00:52:25 +02:00
Daniel Martí
808c4cefc3 Added a little margin before the description 2013-10-17 22:23:06 +02:00
Daniel Martí
ef389b90e8 More space to the search results string 2013-10-11 20:30:36 +02:00
Daniel Martí
18a08fb611 Lots of layout improvements
They are more consistent now. Transitioning to RTL languages will also be
easier since more of them can be mirrored now. Also fixes some spacing issues
with icons and others.
2013-10-11 20:25:18 +02:00
Daniel Martí
ae95ef1b74 Spacings after html lists are fixed. Better paddings. 2013-10-11 18:59:40 +02:00
Daniel Martí
31afbe0423 AppDetails Apk layout tweaks, show ABIs in expert mode 2013-10-11 18:20:23 +02:00
Daniel Martí
9c7316eea9 Very small fixes to paddings 2013-10-11 16:38:56 +02:00
Daniel Martí
6e622e59ab Initial Anti-Feature list implementation
Also, move visibility stuff from onResume to onCreate (they are only affected
by preferences, i.e. onCreate will always be run since the preferences button
is only in our main activity).
2013-10-08 15:32:22 +02:00
Daniel Martí
60dcf7f12c Disable baseLineAligned on more LinearLayout elements 2013-09-27 18:04:01 +02:00
Daniel Martí
5e0dfcc631 No need for alignment on appdetails 2013-09-26 00:09:57 +02:00
Daniel Martí
5a2a68644b Remove unused layout 2013-09-26 00:09:48 +02:00
Daniel Martí
d6d48eb749 Input field for repo is an Uri 2013-09-23 21:22:39 +02:00
Peter Serwylo
af2a9ecfb6 Safer preference managing. Fix "compact layout requires reload".
Previously, everybody had to remember the preference name and the
default value. If it was ever changed, this would have to be updated
everywhere. Now, the Preferences class is responsible for talking to the
SharedPreferences functionality of ANdroid.

I've started with just the compactlayout preference, because
that is what I required for this fix.
2013-07-26 09:38:23 +10:00
Daniel Martí
bc77804eee Add a small padding to the "found x applications matching..." string in SearchResults 2013-07-26 00:14:42 +02:00
Peter Serwylo
d2e2b492fb Added missing > in XML. 2013-07-21 07:20:53 +10:00
Daniel Martí
d315521c7d Remove rtl layout support (WIP in rtl-layout branch) 2013-07-18 12:06:04 +02:00
Daniel Martí
a46b8e8663 Revert all the fast scroll always enabled changes 2013-07-11 12:45:13 +02:00