579 Commits

Author SHA1 Message Date
Ciaran Gultnieks
1bad4cc5f7 Version 0.48-test 0.48-test 2013-08-06 14:53:11 +01:00
Ciaran Gultnieks
3dbb5758d5 Translation updates 2013-08-06 14:52:33 +01:00
Daniel Martí
6efb3e4927 Icons were not downloaded on first repo update if cache dir didn't exist 2013-08-06 15:36:33 +02:00
Daniel Martí
9886f59d17 Force repo update after DB update 2013-08-06 15:27:21 +02:00
Daniel Martí
f44b420473 Bump DB version db-version/22 2013-08-06 14:49:09 +02:00
Daniel Martí
8325d2256a Toast when no app can be found matching id 2013-08-02 23:33:11 +02:00
Daniel Martí
e04a9f9682 Merge commit 'refs/merge-requests/45' of gitorious.org:f-droid/fdroidclient
Conflicts:
	src/org/fdroid/fdroid/AppDetails.java
2013-07-31 15:32:02 +02:00
Daniel Martí
e0bdc3c338 Make DB.getAppsBasic(bool) private
We don't want anyone using it outside of DB.java
2013-07-28 13:51:09 +02:00
Daniel Martí
7611a26f0a Use strings in AM.xml labels 2013-07-28 13:50:42 +02:00
Ciaran Gultnieks
57a8bf5f8b Change example repo address help string to https (for english) 2013-07-28 10:26:58 +01:00
Daniel Martí
5542f246f5 setDisplayShowTitleEnabled no longer used 2013-07-28 09:47:29 +02:00
Daniel Martí
a2e99c05a6 Fix f-droid.org web repo handling
Links on the site end with '/'. Using pathPrefix is IMHO better than
duplicating with and without ending slash.
2013-07-28 09:36:37 +02:00
Daniel Martí
6544ebed94 Handle www.f-droid.org as well as f-droid.org 2013-07-28 09:25:31 +02:00
Daniel Martí
aa164dd090 Also open web repo links right away
No fdid opens the app normally, listing all the apps. If fdid is present, that
app is opened.
2013-07-28 09:23:53 +02:00
Daniel Martí
eead91385e Do not invalidate all apps if not needed.
This gets repo updates with no changes back to normal speed, keeping the new
functionalities (icons download after cache clean) intact.
2013-07-28 09:08:20 +02:00
Daniel Martí
9d6c88a8bf Use https everywhere 2013-07-26 15:42:37 +02:00
Daniel Martí
49dddf42a4 Download all icons if cache/icons/ is missing
This way, after wiping cache one can redownload all the icons by just
updating the repos (even if they don't need updates, this will work)
2013-07-26 14:34:40 +02:00
Daniel Martí
f1f1abf095 Add App.userInstalled property for future use 2013-07-26 13:32:13 +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
Daniel Martí
47575b5c56 Add search results label 2013-07-26 00:10:48 +02:00
Daniel Martí
cb2bf7945b Add AppDetails activity label as well 2013-07-26 00:07:24 +02:00
Daniel Martí
1d72c31557 Set Preferences label for the ActionBar 2013-07-25 23:49:14 +02:00
Daniel Martí
a5492cac35 Revert "Hide ActionBar title on AppDetails to make space"
This reverts commit 2b4147ed9fee4557723804df093e5a3bd838cfb4.
There's no need to make more space.
2013-07-25 23:18:04 +02:00
Daniel Martí
c032cae0ff Don't show remove/run buttons on incompatible apps 2013-07-25 23:08:23 +02:00
Daniel Martí
03ca3e0e05 CV == 0 means none recommended. No CV declared means latest compatible apk recommended. 2013-07-23 18:19:04 +02:00
Daniel Martí
0c1b854b69 Remove "reset" from the preferences page.
Currently, removing the cache does the job much better. The only thing
clearing the cache doesn't do which "reset" did is removing the databases. But
we don't want to do that anyway.

If someone wants to do that, they can just deactivate or remove a repo, and it
will get wiped from the database.
2013-07-23 17:02:35 +02:00
Daniel Martí
4de47bd810 Only fetch local_path if necessary 2013-07-23 13:40:50 +02:00
Daniel Martí
36ff25a95c Merge commit 'refs/merge-requests/53' of gitorious.org:f-droid/fdroidclient 2013-07-23 12:11:20 +02:00
Daniel Martí
38f2cadb80 Don't recommend incompatible versions (closes: #311) 2013-07-23 11:21:18 +02:00
Peter Serwylo
65244e6784 Refactored the compact layout preference in AppListAdapter.
Moved it to a getter, instead of directly accessing the property
throughout.
2013-07-23 09:03:02 +10:00
Daniel Martí
5761f32935 Never star vercodes larger than the current as recommended 2013-07-22 17:59:46 +02:00
Daniel Martí
38c0ae1972 Sharing apps now has a better plaintext structure
SUBJECT: "Android App: [name]"
TEXT: "[name] ([summary]) - [link]"
2013-07-22 16:57:24 +02:00
Daniel Martí
ff0f3a27f9 Use https when sharing an app 2013-07-22 16:19:41 +02:00
Daniel Martí
e44f8b67a7 Disabling repos now clears their apks as well
The current method is quite ugly, mainly because enabling and disabling repos
uses SQL and the list item click function does not tell us whether a repo is
being enabled or disabled. For now it works, but there's room for improvement.
2013-07-22 14:59:22 +02:00
Daniel Martí
632f18c4a2 Fix getAppsBasic
versionName was always null, hence hasUpdates was always false.
2013-07-22 14:57:40 +02:00
Daniel Martí
3ea7226330 Also open https links to apps 2013-07-22 11:35:30 +02:00
Daniel Martí
6bfcb338d4 Use the new /app/app.id uri scheme
Also, differentiate between market://details and http://f-droid.org/app
better.
2013-07-22 11:33:21 +02:00
Daniel Martí
f3ee1201e4 Use INDEX_CAN_UPDATE rather than its hard-coded id 2013-07-22 10:51:17 +02:00
Daniel Martí
25968d181d Remove "X updates available" notification when entering the updates tab
Both in the old and new tab managers, when entering or programmatically
selecting the third tab (id 2) the notification with id 1 (updates
notification) will be cancelled i.e. deleted.
2013-07-21 19:01:07 +02:00
Daniel Martí
930cf7d613 Don't list apps with zero apks
After removing one or more repos, remove all the apps which don't have any
apks listed from the database.
2013-07-21 17:49:56 +02:00
Daniel Martí
4b32f92777 Get rid of unnecessary indentations 2013-07-21 17:03:26 +02:00
Daniel Martí
96f358d94c New getAppsBasic to avoid retrieving unnecessary data 2013-07-21 17:00:05 +02:00
Daniel Martí
07a161c0a9 Don't crash if no apks are listed 2013-07-21 13:20:42 +02:00
Daniel Martí
b9d5e8f701 Invalidate app/apk cache when removing repos 2013-07-21 13:15:01 +02:00
Daniel Martí
c545139927 Forgot to default hasUpdates to false (fixes: #297) 2013-07-21 11:18:37 +02:00
Peter Serwylo
c8fa5303c4 Fixed issues with api version differences.
I moved the Utils.hasApi to the protected method in Compatibility.
It was misleading having it in Utils, because it is not as simple as
putting a "if(Utils.hasApi(11)) callApi_11_method()" there.

The problem isn't when the method is executed during runtime, it is when
the class is loaded into the VM using the classloader. At that point, it
tries to verify that indeed every method you call from your class
exists, so the conditional check doesn't work, hence VerifyError's and
breakage.

The appropriate way to do it is the same way as the Android support
library does it. The goal is to have an interface which only one
implementation is every loaded at runtime. Any implementations for
versions that your device doesn't support will never get loaded, so no
VerifyErrors. If you have the support library installed in your
Android SDK, check out
extras/android/support/v4/src/java/android/support/v4/view/MenuItemCompat.java
to see how the pattern works.
2013-07-21 08:14:57 +10:00
Peter Serwylo
d2e2b492fb Added missing > in XML. 2013-07-21 07:20:53 +10:00
Daniel Martí
44824fa6cf Make install and run to be always shown in AB 2013-07-19 23:24:54 +02:00
Daniel Martí
86464608d7 Use f-droid.org rather than fdroid.org 2013-07-18 12:36:55 +02:00