1121 Commits

Author SHA1 Message Date
F-Droid Translatebot
ca2fe21beb Translation updates 2014-03-22 12:09:05 +00:00
Daniel Martí
361fbc83ba Re-organize default repos to separate and distinguish them 2014-03-22 11:24:44 +01:00
Daniel Martí
9f2de0abd7 Get rid of EXTRA_NOT_UNKNOWN_SOURCE target api warning 2014-03-22 11:22:03 +01:00
Daniel Martí
2cd17a904e Placed the TargetApis wrong 2014-03-22 11:18:42 +01:00
Daniel Martí
a1a8c06565 Start using contentDescription on ImageView elements 2014-03-22 11:12:42 +01:00
Daniel Martí
4f065492ef Unify the usage of cursors
Safer and less error-prone because:

* Always checks for null
* Checks for sizes
* Inits App/Apk lists at known capacity
* Properly closes all cursors

There are still one or two cursors that are not closed correctly and show
things like these:

W/CursorWrapperInner(19973): Cursor finalized without prior close()
2014-03-22 00:11:56 +01:00
Daniel Martí
fc4a96acd8 Don't break when updating the Apk table on devices before 3.0 2014-03-21 23:22:23 +01:00
Peter Serwylo
9c9ecc5140 Fixed issue 472, NPE on android 3.1 (and 3.0).
The Activity.getActionBar() method can only be called after
setContentView() has been invoked, as described here:

  http://blog.perpetumdesign.com/2011/08/strange-case-of-dr-action-and-mr-bar.html

I couldn't think of any way to enforce this safely
(i.e. make the compiler kick up a stink if we didn't do it). As such,
I just put a comment above each usage of the ActionBarCompat class.

Another outstanding issue is a duplicate of 474, where it crashes when you
press the "Up" button from ManageRepos, but I'll create a different issue
for that.
2014-03-22 08:29:13 +11:00
Daniel Martí
0e47ac6900 Slightly speed up getAndroidVersionName by using a static array 2014-03-21 18:18:12 +01:00
Daniel Martí
ded9b146a2 Update UIL 2014-03-20 00:09:17 +01:00
Daniel Martí
ee38ff3eea Merge commit 'refs/merge-requests/69' of gitorious.org:f-droid/fdroidclient 2014-03-20 00:03:47 +01:00
Daniel McCarney
7dd216d212 Apply Google CSRNG fixes.
The cryptographically secure random number generator exposed to Android
through the Java Cryptography Architecture is not properly initialized
on some older unpatched versions of Android. Google provides
a PRNGFixes.java class to force secure seeding of the CSRNG on all
platform versions. This comment adds the PRNGFixes class & and a call to
invoke the fixes from the FDroidApp class.

More detail is available from the Google Android Developers blogpost on
the subject:
  http://android-developers.blogspot.ca/2013/08/some-securerandom-thoughts.html
2014-03-19 18:56:42 -04:00
Daniel Martí
955087d523 Relese 0.61-test 0.61-test 2014-03-19 13:39:20 +01:00
Daniel Martí
ddb1cfd659 Only set NOT_UNKNOWN_SOURCE if available 2014-03-19 12:46:17 +01:00
Peter Serwylo
94300592d9 Fix missing resource issue.
When adding "default_repo_priority", it was copy/pasted from
"default_repo_pubkey" without changing the name, and so
tried to cast the string value into an int and failed.
2014-03-19 07:02:00 +11:00
Peter Serwylo
fa8052611e Don't reset "transient" tables from now on.
Instead, use:

if (oldVersion < ... && !columnExists(...))
	db.execSQL("ALTER TABLE ...")

to add/modify columns as required.
db-version/42
2014-03-19 06:22:09 +11:00
Daniel Martí
53a10aa44f Re-run fix-ellipsis after translatebot overwrite 2014-03-18 08:17:34 +01:00
Daniel Martí
5e30d0d218 Remove "Android App:" when sharing an application
Reasons to do so:
* Redundant
* Often noisy
* Not properly translated
2014-03-18 08:15:04 +01:00
F-Droid Translatebot
7f652f8620 Translation updates 2014-03-17 15:27:41 +00:00
Daniel Martí
aa85cddd84 Fix repo manifest for 0.58, not master 2014-03-17 14:01:17 +01:00
Daniel Martí
12a9a1cf29 New script: Update repo xml data with git repo/submodule data 2014-03-17 14:01:08 +01:00
Daniel Martí
ca0ed2844e README: Minor fixes, don't use repos differing from the ones in git submodules 2014-03-17 13:35:35 +01:00
Daniel Martí
58609a4f50 Update submodules 2014-03-17 13:20:38 +01:00
Daniel Martí
05edd59b05 Ignore UnusedResources on default_repo.xml
We iterate over them programmatically, so lint thinks we don't use them
2014-03-17 09:39:52 +01:00
Daniel Martí
3df221bc4a Don't ship third-party repos 2014-03-17 09:38:38 +01:00
Daniel Martí
a184ce7268 Make priorities configurable too 2014-03-17 09:38:11 +01:00
Daniel Martí
6284811fec Merge commit 'refs/merge-requests/68' of gitorious.org:f-droid/fdroidclient 2014-03-17 09:29:13 +01:00
Daniel Martí
2095229061 Run translation auto-correct scripts 2014-03-17 09:26:23 +01:00
F-Droid Translatebot
8acb1b9a76 Translation updates 2014-03-17 08:24:02 +00:00
Peter Serwylo
0ec4e3756d Don't show update option in list if ignored.
Related to the last bug with the update notify count. This one is
also due to the fact we didn't ask for the right data from the
provider. If these bugs keep coming in over time, I will seriously
consider guarding access to each variable with a check, and throwing
an exception if the variable hasn't been initialized. For now I'll
see if it was a once off. Hopefullly tests will catch these issues
in the future.
2014-03-17 17:43:45 +11:00
Rene Treffer
67e1020684 Add missed occurance of old repo address R.string 2014-03-16 14:20:44 +01:00
Rene Treffer
7fa25d3209 Add ROM building instructions
Android.mk enables ROM devs to bundle F-Droid. Add instruction on how to
do it.
2014-03-16 14:03:46 +01:00
Rene Treffer
1f799d1ef1 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).
2014-03-16 13:52:05 +01:00
Rene Treffer
61bbbf442d Make the list of default repos dynamic
This patch iterates over the configured list of repos and adds them to
the db on create. This means that the initial list of repositories is
now fully configurable. Added the guardian project repo (disabled) as a
testcase.
2014-03-16 13:50:17 +01:00
Rene Treffer
d55fc7cd69 Fix build failure with newer toolchains.
Android somehow wants every string to be externalized on newer
toolchains, let's prepare for that.

This fixes in-tree building of f-droid.
2014-03-16 13:44:25 +01:00
Rene Treffer
750da53970 Add Android.mk for building in ROMs
Android.mk is needed to build F-Droid as part of other ROMs. A ROM would
have to emulate the .gitmodules with repo.

Note: the build will fail until AndroidPinning pulls a trivial fix for
      super(null). There is also a layout bug that is fixed by the next
      commit.
2014-03-16 13:40:20 +01:00
Daniel Martí
49a3c3370f Don't finish the whole Repositores activity when cancelling "New Repository" 2014-03-10 18:36:35 +01:00
Daniel Martí
54d7849191 Get rid of lint TargetApi warnings 2014-03-10 18:30:42 +01:00
Daniel Martí
be4db93da5 Forgot the rtl fixes for layout-land 2014-03-10 18:27:43 +01:00
Daniel Martí
6fa72607b8 Fix relative layouts on <4.2, broken while trying to add RTL support 2014-03-10 18:19:15 +01:00
Daniel Martí
4454c0d261 No need to reset views in the app lists 2014-03-10 17:56:49 +01:00
Daniel Martí
0f44c5edba Fix scaling of icons on AppDetails 2014-03-10 17:56:38 +01:00
Hans-Christoph Steiner
1d3c18423b use https for fdroid.org everywhere, avoid redirects 2014-03-10 17:33:33 +01:00
Hans-Christoph Steiner
31fe8343ad fix RO translation's formats, based on lint warning
Inconsistent formatting types for argument #1 in format string
searchres_napps ('%s'): Found both 'd' and 's' (in values/strings.xml)

This lint check ensures the following: (1) If there are multiple
translations of the format string, then all translations use the same type
for the same numbered arguments (2) The usage of the format string in Java
consistent with the format string, meaning that the parameter types passed
to String.format matches those in the format string.

<string name="searchres_napps">Sa gasit o aplicatie potrivita cu %s\'</string>
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2014-03-10 17:32:06 +01:00
Peter Serwylo
ef17cc3489 Merge branch 'fix/update-notify-count' 2014-03-06 23:31:33 +11:00
Peter Serwylo
9fd8da42a1 Adding test coverage for "AppProvider.Helper.findIgnored()"
Also added tests for canAndWantToUpdate() while I was at it.
2014-03-06 23:31:26 +11:00
Peter Serwylo
81fcd44b66 Fixed update notification count
The update notification was not taking ignored apps into account.
This is the first manifestation of a class of bug I feared whereby
the properties of an App object are not initialized, but no error
is thrown. It occured because we were iterating over apps that were
created from the index file, rather than our database. Hence, they
had no knowledge about whether they should be ignored or not.

Also took the chance to perform a minor refactor of UpdateService
class. The onHandleIntent method was getting huge, so I extracted
two methods: verifyIsTimeForScheduledRun() and
performUpdateNotification(), as well as removing the unused "success"
flag.

The two methods should theoretically make the class more testable
later, as we can test the scheduled run code, and the update notification
code in separate tests, but we'll wait and see if that eventuates.
2014-03-06 23:31:26 +11:00
Daniel Martí
68f266d6be Remove silly values-qqq 2014-03-05 23:12:55 +01:00
Daniel Martí
91363bf753 Re-run fix-ellipsis 2014-03-05 22:58:58 +01:00
Daniel Martí
f7051a3f50 Run remove-unused-trans again 2014-03-05 22:58:38 +01:00