Commit Graph

9945 Commits

Author SHA1 Message Date
Thore Goebel
68ff30be0f Simplify Layout
ConstraintLayout is a bit overkill for a simply row
2025-02-11 13:25:00 +00:00
Torsten Grote
e8d7bef764 Merge branch 'animate' into 'master'
Animate FDroidExpandableRow

See merge request fdroid/fdroidclient!1504
2025-02-11 11:53:55 +00:00
Thore Goebel
10fc31034c Animate FDroidExpandableRow
Proposed in https://gitlab.com/fdroid/fdroidclient/-/merge_requests/1490#note_2339776179
2025-02-10 21:47:09 +01:00
Torsten Grote
69969b1716 Merge branch 'repo-details-compose-redesign' into 'master'
Redesign RepoDetailsActivity

Closes #2781

See merge request fdroid/fdroidclient!1490
2025-02-10 12:42:37 +00:00
Thore Goebel
626a8cbe31 Repo archive: text+button for unknown and loading indicator 2025-02-08 14:01:28 +01:00
Thore Goebel
148b66ccf4 Use interface+callbacks 2025-02-06 22:02:09 +01:00
Thore Goebel
96ce5be721 Review feedback 2025-02-06 22:02:09 +01:00
Thore Goebel
4479f5ffb7 Dynamically generate QR code without LiveData 2025-02-06 22:02:09 +01:00
Thore Goebel
c9e43ac9c1 Add Long.asRelativeTimeString util 2025-02-06 22:02:09 +01:00
Thore Goebel
6980aea11c Remove unnecessary repoLiveData + use make repoFlow stateful 2025-02-06 22:02:09 +01:00
Thore Goebel
0963118d32 Don't finish() explicitly
We are already observing the ViewModel.
Once the repo becomes null in the ViewModel.repoFlow, the observer will finish().
2025-02-06 22:02:09 +01:00
Thore Goebel
d82905a19c Reduce padding between ExpandableRows 2025-02-06 22:02:09 +01:00
Thore Goebel
4f99fc03c8 Rebase on Material 3 2025-02-06 22:02:09 +01:00
Thore Goebel
ab1bec63ad Move archive toggle to dedicated row 2025-02-06 22:02:09 +01:00
Thore Goebel
a1e7ec9527 Show countryCode for official mirrors 2025-02-06 22:02:09 +01:00
Thore Goebel
6ba9f3a77f Break up RepoDetailsState into repoFlow and archiveStateFlow
Before this commit, the UI would not update, because the `repo` in the `state` was never updated.
This was mostly noticeable when toggling mirrors on and off.

So the UI needs to use repoFlow directly (to listen to RepoManager changes).
But then there is no need for RepoDetailsState anymore.
2025-02-06 22:02:09 +01:00
Thore Goebel
991b301d7f Delete unused strings 2025-02-06 22:02:09 +01:00
Thore Goebel
927621f364 Redesign RepoDetailsActivity 2025-02-06 22:02:05 +01:00
Thore Goebel
921f8ad374 Add FDroidSwitchRow 2025-02-06 21:53:58 +01:00
Thore Goebel
0a97abc6a4 Add FDroidExpandableRow 2025-02-06 21:53:58 +01:00
Torsten Grote
e41493f214 Merge branch 'change-update-color' into 'master'
Fix "Updating repositories" header having no contrast in light mode

See merge request fdroid/fdroidclient!1502
2025-02-06 18:56:37 +00:00
LucasMZ
3c29d8ff0d Change "Updating Repositories" header to use colorSurfaceContainerHighest instead of colorSurfaceBright
Makes it have contrast in light mode, just like in dark mode
2025-02-06 14:08:59 -03:00
Torsten Grote
9389e3b907 Merge branch 'target-35' into 'master'
Target Android 15 with basic and support edge to edge

Closes #2942

See merge request fdroid/fdroidclient!1482
2025-02-06 13:28:15 +00:00
Torsten Grote
dbd9a4dc79 Also publish debug APKs for easier testing 2025-02-06 09:01:46 -03:00
Torsten Grote
e49133f35d Remove hardcoded mainTabSwapBackground which had slightly different color than status bar/window 2025-02-06 09:01:46 -03:00
Torsten Grote
48ff569270 Proper edge-to-edge for RepoPreviewScreen 2025-02-06 09:01:46 -03:00
Torsten Grote
4980120f0a Proper edge-to-edge for AppListActivity (search) 2025-02-06 09:01:46 -03:00
Torsten Grote
66c522c689 Also build and publish basic flavor in CI 2025-02-06 09:01:45 -03:00
Torsten Grote
34ef3b35a1 [app] basic target Android 15 and adapts to edge to edge 2025-02-06 09:01:45 -03:00
Torsten Grote
121217e168 Merge branch 'fix-miss-surfaceContainer' into 'master'
fix: miss surfaceContainer colors for Compose

See merge request fdroid/fdroidclient!1500
2025-02-06 11:49:29 +00:00
proletarius101
151d7559eb fix: missing surface colors for the dark theme 2025-02-05 14:02:21 -08:00
proletarius101
29cdce0cf9 fix: miss surfaceContainer colors for Compose 2025-02-05 06:26:58 -08:00
Michael Pöhn
5a37455932 Merge branch 'stream-tests' into 'master'
Add tests for AutoVerifyingInputStream

Closes #2912

See merge request fdroid/fdroidclient!1492
2025-02-04 23:46:11 +00:00
Torsten Grote
1d30c1f4e2 [download] add tests for AutoVerifyingInputStream 2025-01-29 11:23:59 -03:00
Torsten Grote
cbd54fdf54 Merge branch 'repo-details-compose' into 'master'
Refactor RepoDetailsActivity, move logic into ViewModel

See merge request fdroid/fdroidclient!1489
2025-01-29 14:22:08 +00:00
Thore Goebel
70046f3478 Refactor: move QR Code generation into RepoDetailsViewModel 2025-01-29 14:57:04 +01:00
Thore Goebel
6e6f701121 Refactor: Move repositoryDao and appDao into RepoDetailsViewModel 2025-01-29 14:57:04 +01:00
Thore Goebel
f17e980d7d Refactor: Use proper states instead of abusing null in RepoDetailsViewModel
1. Add an ArchiveState.

2. Initialise the ViewModel with the repo.
   If we don't have a repo, we exit the screen entirely, so it doesn't make
   sense for the repo to be null in the viewmodel.
2025-01-29 14:57:04 +01:00
Torsten Grote
7e6982e6cd Merge branch 'share' into 'master'
Add createChooser for sharing installed apps + install history

See merge request fdroid/fdroidclient!1494
2025-01-29 13:54:07 +00:00
Thore Goebel
f6e0dbd741 Add createChooser for sharing installed apps + install history 2025-01-29 14:34:52 +01:00
Torsten Grote
74f0c63abd Merge branch 'md3' into 'master'
Migrate to Material Design 3

Closes #1962, #2246, #2511, #2927, and #2926

See merge request fdroid/fdroidclient!1350
2025-01-29 13:34:15 +00:00
Torsten Grote
71e42c6429 Fix all repos shown as preferred in app details 2025-01-29 09:55:33 -03:00
Torsten Grote
26df49af0c Another round of addressing MD3 feedback 2025-01-28 13:05:04 -03:00
Torsten Grote
938242e971 Use colorTertiaryContainer for warning containers 2025-01-27 12:58:47 -03:00
Torsten Grote
c2c9e8d4df Fix color of 'turn on wifi' button 2025-01-27 12:58:47 -03:00
Torsten Grote
7f71c38e97 Update StatusBanner with MD3 colors 2025-01-27 12:58:47 -03:00
Torsten Grote
3906cad5fc Address review feedback 2025-01-25 09:53:14 -03:00
Torsten Grote
922330c089 Improve empty state icon colors
Fixes #2927
2025-01-24 08:33:44 -03:00
Torsten Grote
e824f56660 Unify theme and content, fix some minor issues 2025-01-24 08:33:44 -03:00
proletarius101
2b0e5b467f feat: migrate to material design 3 2025-01-24 08:33:43 -03:00