LinearProgressIndicator: Fixes for new M3 design

* Since 1.12.0, LinearProgressIndicator uses new M3 design that doesn't plays well with install and ratings for us
* Switch both back to old style using new Widget.Material3.LinearProgressIndicator.Legacy style
* Additionally drop trackCornerRadius and switch to custom background with clipToOutline for download as the class
  now has a bug that messes with style

Keep downloads to follow new M3 design

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-06-13 21:40:14 +05:30
parent 7c0e258d58
commit 7f32b9078e
4 changed files with 9 additions and 1 deletions

View File

@@ -237,6 +237,7 @@ class AppDetailsFragment : BaseFragment(R.layout.fragment_details) {
}
// Downloads
binding.layoutDetailsInstall.progressDownload.clipToOutline = true
binding.layoutDetailsInstall.imgCancel.setOnClickListener {
viewModel.cancelDownload(app)
if (downloadStatus != DownloadStatus.DOWNLOADING) flip(0)