212 Commits

Author SHA1 Message Date
Daniel Martí
32a106ad1d Don't run getIntent() twice 2013-09-26 00:44:56 +02:00
Daniel Martí
534400c80c Remove app.icon from DB, save icon uris to memory 2013-09-24 22:33:21 +02:00
Daniel Martí
489bf1425c Remove many unused imports 2013-09-23 21:10:05 +02:00
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í
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í
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í
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í
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í
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í
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í
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í
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í
07a161c0a9 Don't crash if no apks are listed 2013-07-21 13:20:42 +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
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
Daniel Martí
577a4250b6 Share via http://fdroid.org/app?id=app.id
Advantages:
- http links are linkified everywhere
- web browser request will fall back to our web repo
- we don't have to use our own scheme
2013-07-18 11:56:52 +02:00
Daniel Martí
de82ab4e1d Typo in proposed code for selections 2013-07-16 15:08:27 +02:00
Daniel Martí
35d30e148e Disable text selection as it didn't allow links.
Possible but wonky solution suggested in the source code comments.
2013-07-16 15:03:01 +02:00
Daniel Martí
89f8630f12 Add share (via fdroid://details?id=app.id) button 2013-07-15 16:49:03 +02:00
Daniel Martí
234b39acb7 Add support for fdroid://details?id=app.id uris
Also, launch them from inside AppDetails directly
2013-07-15 15:37:24 +02:00
Ciaran Gultnieks
79b789d2c0 Merge branch 'master' of gitorious.org:f-droid/fdroidclient 2013-07-11 13:55:40 +01:00
Daniel Martí
2b4147ed9f Hide ActionBar title on AppDetails to make space 2013-07-10 15:51:58 +02:00
Daniel Martí
194cb24d2c Move the "Uninstall" button to the Action Bar 2013-07-10 14:23:51 +02:00
Ciaran Gultnieks
9d51cd72ac Use proper cache storage location (issue #239) 2013-07-10 11:34:19 +01:00
Daniel Martí
3ce8cbf5bd Restore old invalidations after apk installs/uninstalls. Do not refresh the same app multiple times. 2013-07-08 11:21:36 +02:00
Daniel Martí
686403d978 Add back to home function to the actionbar icon for apis >=11 (fixes #291) 2013-07-07 11:10:03 +02:00
Daniel Martí
948dfa55ec We handle market:// now, so open play.google.com directly 2013-07-07 10:27:37 +02:00
Daniel Martí
eaa94bdf83 No need to move around app ids around any more 2013-07-07 10:20:57 +02:00
Daniel Martí
9c4aa9127f Drastically improve performance after installs/uninstalls.
- Only reload those apps that actually need reloading, not all of them
- Reloading all the stuff inside DB.App is not necessary - only the install
  information can be changed
2013-07-07 00:27:12 +02:00
Daniel Martí
d39047bfea Drop text selection for APIs 10 or lower (not available) 2013-07-06 19:40:22 +02:00
Daniel Martí
419ea5510d Don't refill description and other static stuff when returning from install/uninstall 2013-07-06 19:16:12 +02:00
Daniel Martí
93326a90d1 Descriptions and Summaries are now selectable (closes #290) 2013-07-06 18:28:25 +02:00
Daniel Martí
0d099a0126 Don't crash if a link points at a nonexistent package (fixes #167)
For now, nothing happens. This should be improved.
2013-07-06 13:35:58 +02:00
Daniel Martí
4a61c20e92 Merge commit 'refs/merge-requests/46' of gitorious.org:f-droid/fdroidclient 2013-06-27 14:50:33 +02:00
Daniel Martí
7605ec219f Merge commit 'refs/merge-requests/48' of gitorious.org:f-droid/fdroidclient 2013-06-27 12:51:04 +02:00
Daniel Martí
3f0d8b2577 Don't suggest downgrades. No need to check version 2013-06-01 12:03:34 +02:00
Andrew Gaul
f5c6c4c0fe Correct typos 2013-05-31 08:44:44 -07:00
Ciaran Gultnieks
44bcaf465a Merge commit 'refs/merge-requests/43' of git://gitorious.org/f-droid/fdroidclient into merge-requests/43 2013-05-30 17:08:51 +01:00