379 Commits

Author SHA1 Message Date
Daniel Martí
017811fb92 Use UIL, don't do caching on our own.
Advantages:

* Initial setup time for icons is zero
* We don't have to deal with it ourselves
* We can use the default package icon while we load
2013-09-23 20:21:29 +02:00
Daniel Martí
85cd9abd4c Set PackageInstaller as org.fdroid.fdroid whenever possible (closes: #355) 2013-09-21 23:46:09 +02:00
Daniel Martí
8f334fefeb Make Donate hold a submenu with all donation methods 2013-09-21 21:09:54 +02:00
Daniel Martí
40f4482bd6 Filtering bools are now done once per refresh 2013-09-19 22:56:14 +02:00
Daniel Martí
3ea503f527 Filtered apps are now shown like incompatible apps
Apps with antifeatures or root requirements whose settings are not enabled are
shown greyed out in searches, direct links and the installed tab. Apks are
hidden so as to emphasize that the app should not be installed.
2013-09-19 22:56:14 +02:00
Daniel Martí
f6b83871d3 Revert "Slightly optimise greyed out apk/app views"
This reverts commit 19583c2b75224bf60ebfe65ff86c1d061b20f855.
2013-09-06 13:03:15 +02:00
Daniel Martí
38d7fcdd4a No need to do anything when returning from PreferencesActivity 2013-09-06 13:01:03 +02:00
Daniel Martí
20aa6b8d64 Revert "Do not update AppDetails views if not necessary"
This reverts commit b14b2a9611522b94eb1d23022dab5c0b99708488.
2013-09-01 17:03:03 +02:00
Daniel Martí
3741c0c62b Revert all Light Theme changes
Should be done differently. Light theme before Holo is buggy.
2013-09-01 14:03:55 +02:00
Daniel Martí
c2159456e2 Add "Ignore Updates" to AppDetails (fixes: #99)
We can later separate updates by differing signatures, downgrades, ...
But IMHO ignoring updates is important and a different issue.
2013-09-01 14:03:50 +02:00
Daniel Martí
abde150ce0 Search and Update ActionBar items to _ALWAYS 2013-08-31 04:08:24 +02:00
Daniel Martí
b14b2a9611 Do not update AppDetails views if not necessary 2013-08-31 03:57:17 +02:00
Daniel Martí
6651fe43e6 Preferences in AppDetails now in onCreate()
This solves incompatible apks not showing up when showIncompatible is true
2013-08-31 03:51:47 +02:00
Daniel Martí
4109bb270d Always keep incompatible apps in the DB
Show them under the following circumstances:

1) If showIncompatible is true, show all incompatible apps/apks always
2) Installed tab, Searches and direct links will always show incompatible apps, but NOT apks

TODO: onResume should repopulate all lists. And it seems to, lists are
reloaded. But the updates don't take effect and so restart is required for a
change in showIncompatible to take effect.
2013-08-30 17:56:29 +02:00
Daniel Martí
19583c2b75 Slightly optimise greyed out apk/app views 2013-08-30 14:35:15 +02:00
Daniel Martí
116c161ab7 Filter incompatible apps by architecture as well
CPU_ABI and CPU_ABI2 are used to check with the nativecode in the index. This
would only break if either of these two was set incorrectly in the ROM's
build.prop. Then again, should we worry about that?
2013-08-29 17:09:40 +02:00
Daniel Martí
d4a7247629 Add nativecode to database 2013-08-27 18:05:31 +02:00
Daniel Martí
cb83f6991d Forgot to commit import 2013-08-23 16:35:38 +02:00
Daniel Martí
32ae91eef5 Forgot to add theme support to SearchResults 2013-08-23 16:26:02 +02:00
Daniel Martí
50f0856f67 Add "Light Theme" setting
Default theme is dark (Holo dark on >=11), addition is light on <11, Holo.Ligt
on >=11 and Holo.Light.DarkActionbar on >=14
2013-08-23 14:29:50 +02:00
Daniel Martí
d6a66017e9 Delete non-used icons from cache 2013-08-23 11:11:05 +02:00
Daniel Martí
afe102e90a Better tryOpenUri implementation and toast string.
Got the if/else hint from
http://developer.android.com/about/versions/android-4.3.html#Behaviors

(much better than try/except anyway)
2013-08-22 18:16:57 +02:00
Daniel Martí
6cc1880b17 Remove code that copied icons from .fdroid for the 0.46->0.50 update 2013-08-22 17:23:51 +02:00
Ciaran Gultnieks
cd0234b4e8 Create .nomedia in icons directory for old Androids 2013-08-19 10:00:21 +01:00
Ciaran Gultnieks
2ad2b86e88 Need to be more defensive about cache clearing with slow SD cards 2013-08-09 12:18:22 +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 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í
5542f246f5 setDisplayShowTitleEnabled no longer used 2013-07-28 09:47:29 +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í
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