140 Commits

Author SHA1 Message Date
Marcus Hoffmann
10e2bf2a7c
add liberapay field and donation option
This add the liberapayID index field to the local db and then displays a
donation badge for apps that provide this.
2018-02-15 19:58:12 +01:00
Hans-Christoph Steiner
f32b26d5c3 Merge branch 'add-sorting-redo' into 'master'
Add sorting redo

fdroidclient!637
2018-02-13 17:28:54 +01:00
hotlittlewhitedog
93885371cc add-sorting-redo-c3
modified:   app/src/main/java/org/fdroid/fdroid/views/apps/AppListActivity.java
	modified:   app/src/main/res/layout/activity_app_list.xml
2018-02-12 18:59:27 +01:00
hotlittlewhitedog
e72348b2d9 add-sorting-redo-c2
modified:   app/src/main/java/org/fdroid/fdroid/views/apps/AppListActivity.java
	modified:   app/src/main/res/layout/activity_app_list.xml
2018-02-12 18:32:15 +01:00
hotlittlewhitedog
333d0a5ea3 add_sorting_redo_c1
new file:   app/src/main/res/drawable-hdpi/ic_az_white.png
	modified:   app/src/main/res/drawable-hdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-hdpi/ic_last_updated_white.png
	new file:   app/src/main/res/drawable-mdpi/ic_az_white.png
	modified:   app/src/main/res/drawable-mdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-mdpi/ic_last_updated_white.png
	new file:   app/src/main/res/drawable-xhdpi/ic_az_white.png
	modified:   app/src/main/res/drawable-xhdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-xhdpi/ic_last_updated_white.png
	new file:   app/src/main/res/drawable-xxhdpi/ic_az_white.png
	modified:   app/src/main/res/drawable-xxhdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-xxhdpi/ic_last_updated_white.png
	new file:   app/src/main/res/drawable-xxxhdpi/ic_az_white.png
	modified:   app/src/main/res/drawable-xxxhdpi/ic_last_updated_black.png
	new file:   app/src/main/res/drawable-xxxhdpi/ic_last_updated_white.png
	modified:   app/src/main/res/layout/activity_app_list.xml
2018-02-07 19:09:35 +01:00
hotlittlewhitedog
b79c6a9780 add-sorting-redo
modified:   app/src/main/java/org/fdroid/fdroid/views/apps/AppListActivity.java
	modified:   app/src/main/res/layout/activity_app_list.xml
	modified:   app/src/main/res/values/strings.xml
	app/src/main/res/drawable-hdpi/ic_az_black.png
	app/src/main/res/drawable-hdpi/ic_last_updated_black.png
	app/src/main/res/drawable-mdpi/ic_az_black.png
	app/src/main/res/drawable-mdpi/ic_last_updated_black.png
	app/src/main/res/drawable-xhdpi/ic_az_black.png
	app/src/main/res/drawable-xhdpi/ic_last_updated_black.png
	app/src/main/res/drawable-xxhdpi/ic_az_black.png
	app/src/main/res/drawable-xxhdpi/ic_last_updated_black.png
	app/src/main/res/drawable-xxxhdpi/ic_az_black.png
	app/src/main/res/drawable-xxxhdpi/ic_last_updated_black.png
2018-02-04 22:13:20 +01:00
Torsten Grote
6067c15085
Implement App Hiding
This commit allows F-Droid to hide itself from the laucher.
It can be hidden either as response to a panic trigger
or as a manual action by long pressing the floating search button.
The latter needs to be explicitly enabled in the settings.

Once hidden, a semi-functional fake calculator app appears in the
launcher that can be used to bring F-Droid back by entering a
pre-defined PIN.
2018-01-27 16:42:59 -02:00
hotlittlewhitedog
ec2b82f827 add-padding-to-last-app-redo
modified:   app/src/main/java/org/fdroid/fdroid/views/categories/CategoryController.java
	modified:   app/src/main/res/layout/category_item.xml
	modified:   app/src/main/res/values/dimens.xml
2018-01-11 21:31:46 +01:00
Torsten Grote
512789aafa
Basic PanicKit Support with one default action
The default action closes F-Droid and removes it from the list of recent
apps.

Destructive action will be added later.
2017-12-06 16:25:01 -02:00
Peter Serwylo
4c6dd8d5ac Merge branch 'uninstall-button' into 'master'
uninstall-button (wrap)

See merge request fdroid/fdroidclient!600
2017-11-19 20:33:19 +00:00
Christine Emrich
e38d02a59c Add full screen detail view to swipe through screenshots 2017-11-08 13:58:24 +01:00
hotlittlewhitedog
f579eecfb3 uninstall-button 2017-10-20 19:44:14 +02:00
hotlittlewhitedog
f17eace301 Fix: card-covered 2017-10-14 20:22:28 +02:00
Peter Serwylo
b69a26463c Allow swipe-to-refresh on categories and updates tab.
The swipe-to-refresh from the latest tab is now also implemented
for the categories and updates tab. It was a bit weird before how
you could swipe to refresh on the first tab, which would show
"Updating repos" at the top. It would then also show the same
message on the categories tab, but you couldn't swipe-to-refresh
that tab. Additionally, several people have requested this on the
updates tab, the tab where it probably makes the most sense.

Fix #1079.
2017-09-28 00:44:24 +10:00
Peter Serwylo
0551b0d1fc Allow user to ignore messages about vulnerable apps 2017-09-27 15:03:03 +10:00
Peter Serwylo
7424220c02 Add apps with known vulnerabilities to updates tab.
Currently only supports "Uninstall", but will soon also support "Upgrade
to a newer version".
2017-09-27 15:03:03 +10:00
Peter Serwylo
fc2093a9a6 Merge branch 'animation-fixes' into 'master'
Animation fixes

See merge request !566
2017-09-05 02:18:30 +00:00
ByteHamster
8bfecc89fb Animation fixes
- Icon transition is no longer jumping in first frame (caused by different padding)
- Icon is no longer cropped at start of transition (caused by missing changeImageTransform)
- Toolbar icons are no longer animated. Introduced in !561 by changing the icons programmatically
2017-08-29 16:07:13 +02:00
Hans-Christoph Steiner
a48a92385e Merge branch 'issue-1117--empty-state-search' into 'master'
Empty search results now shows message (as in 0.102.3)

Closes #1117

See merge request !567
2017-08-29 14:00:39 +00:00
Peter Serwylo
d65d64f6f8 Merge branch 'screenshots-layout' into 'master'
Improve screenshots layout

See merge request !569
2017-08-28 23:05:09 +00:00
Chirayu Desai
6b1bb92282 Fix anti feature warning drawable in dark mode 2017-08-28 10:40:26 +05:30
Christine Emrich
e77281b99b Give screenshots some margin
This way the card views elevation can be displayed
properly and multiple screenshots don't merge together.
2017-08-27 17:35:39 +02:00
Christine Emrich
9be13fd2ab Center screenshots when they don't fill screen width 2017-08-27 17:15:34 +02:00
Peter Serwylo
0f8bec59e1 Show message when no search results are found.
Fixes #1117.
2017-08-08 11:35:23 +10:00
Peter Serwylo
427d7bcbfa Further refactor the AppListItemController for readability and predictability.
This breaks out subclasses for each specific type of app list item,
allowing for code reuse, but also letting the specific business logic
belonging to each different app list item to be separate.

This is particularly helpful in the following situation:

 * In the search results, it is great to be able to render "App
   downloaded, ready to install" in the same manner as the update tab.

 * In the installed app list, this is not desired. Indeed, the status
   text which should be shown should reference the currently installed
   version and whether the user has ignored any updates.

By separating the AppListItemController into subclasses, it reduced the
need to handle several different types of text view (e.g.
"installedStatus", "status", "ignoredStatus", "downloadReady"), and
replace them all with a "status" and "secondaryStatus" TextView. What is
displayed in status and secondaryStatus is up to the individual
subclasses of AppListItemController.
2017-06-29 11:14:57 +10:00
Peter Serwylo
ef230f749c Added "Successfully Installed" status text to updates tab.
Also:
 * Extracted common styles into `@Style/AppListItemStatusText`.
 * Fixed left margin on older devices (where `layout_marginStart` doesn't
   exist).
2017-06-28 17:29:54 +10:00
Felix Ableitner
02fad57f0b Remove update time 2017-06-22 05:54:11 +00:00
Peter Serwylo
5b182ef38d Merge branch 'master' into 'master'
Made app_details2_header text selectable. This addresses #1032.

See merge request !533
2017-06-08 03:28:16 +00:00
Steffan Byrne
63cad0d754 Made app_details2_header text selectable. This addresses #1032. 2017-06-05 22:07:40 -04:00
ByteHamster
f66781eac6 Improved font color in dark theme 2017-06-03 09:58:53 +02:00
Felix Ableitner
07cd5e82fc Remove unused resources 2017-05-31 12:22:47 +09:00
Hans-Christoph Steiner
c5f5eb6a05 Merge branch 'transitions' into 'master'
Fixed shared element transitions

See merge request !524
2017-05-29 18:55:48 +00:00
ByteHamster
ecf0b88c65 Fixed shared element transitions 2017-05-29 18:02:31 +02:00
Peter Serwylo
e46fccce95 Merge branch 'text-all-caps' into 'master'
Use proper way to set text all caps on old api

See merge request !521
2017-05-26 02:57:05 +00:00
Felix Ableitner
05b4a55c0a Use proper way to set text all caps on old api 2017-05-26 11:32:29 +09:00
ByteHamster
2c31b9f793 Displaying background in updates fragment 2017-05-24 20:06:14 +02:00
Hans-Christoph Steiner
f8c9d7ec8e Merge branch '0.103-alpha3--ui-fixes' into 'master'
0.103-alpha3  UI fixes

Closes #981, #967, and #965

See merge request !490
2017-04-26 10:34:02 +00:00
Peter Serwylo
74795d2f7a Don't use attr for color value in drawables.
According to the following this is not supported:

 * http://stackoverflow.com/a/13471695/2391921

This uses the approach in that SO answer, by extracting the attribute to
instead point at a drawable, and have one drawable for each theme.

Fixes #979.
2017-04-26 10:06:00 +10:00
Peter Serwylo
4b70d81e5c Make install/uninstall/run/upgrade buttons not overlap last updated text
Instead of showing them below the icon, it now puts the icon + name +
author + last updated into a single layout which can grow if the app
name or author wraps to a second line. The buttons are now below this
additional layout.
2017-04-26 08:28:25 +10:00
Peter Serwylo
e2c82d2943 Accessibility tweaks in app details.
* Correctly read out "Cancel download"
 * Allow users to hear download progress correctly.
2017-04-26 08:28:24 +10:00
Chirayu Desai
9f50bef04f More dark more fixes
Fixes some leftover items missed in the previous major update.
* Donate view in AppDetails
* What's new view in AppDetails
* The search view
2017-04-21 01:39:39 +05:30
Peter Serwylo
2fbfcb66b0 Make categories read out correctly by screenreader. 2017-04-17 17:31:32 +10:00
Peter Serwylo
17ad6167a3 Fix broken padding in AppDetails2 on older devices.
Right + Left in addition to End + Start for support on older devices.
2017-04-17 17:31:32 +10:00
Peter Serwylo
a9b2ac9388 Don't clip the shadows underneath app details buttons.
Minor UI quirk, it was cutting off the drop shadow for these buttons.
2017-04-17 17:31:32 +10:00
Peter Serwylo
3c1b66dcd1 Let buttons go all the way to the left, not just to the icon.
On languages with longer translations, there is not enough space to fit
the relevant translations on a single line of the button.

Fixes #937.
2017-04-17 17:31:32 +10:00
Hans-Christoph Steiner
8cb277e90d AppDetails2: add missing paddingEnd to match paddingRight 2017-04-14 01:09:33 +02:00
Chirayu Desai
c2685bf14e Fixes for dark mode, needed after the UX Overhaul
* Replace hardcoded color values with references to style.xml,
  which in turn has different values for light and dark theme.
* Force reload the activity to get the theme applied.

TODO:
* Swap uses it's own theme, need to figure out a way to
  handle that. Currently the main Nearby screen which you get
  to from the bottom navigation is ok, but anything after
  that is light / custom themed.
2017-04-13 19:34:18 +05:30
Peter Serwylo
b9129e8a35 Provide feedback to user when installing previous version.
Given the only feedback available to the user that they initiated a
download once clicking the version from the list is up top, this scrolls
the recycler view to the top to show that feedback.

Also shows the selectable background when they touch the version list
items.
2017-04-11 15:37:42 +10:00
Peter Serwylo
6891752672 Added empty state text to updates/installed apps.
Both of these reuse the text that was used in 0.102.
2017-04-11 15:37:42 +10:00
Peter Serwylo
46da776c2c Fix first item in Latest not being clickable
It was clickable if you clicked anywhere on that item other than the
card (e.g. the background feature image).
2017-04-11 15:37:40 +10:00