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
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.
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.
- 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
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.
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.
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.
* 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.
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.