CatimaLoyalty / Android

Catima, a Loyalty Card & Ticket Manager for Android
https://catima.app
GNU General Public License v3.0
870 stars 151 forks source link

homescreen shortcut - very low res #2049

Open laureanorp opened 2 months ago

laureanorp commented 2 months ago

Hello! I was scanning through the issues to check if this was brought up already, but didn't see it.

When adding a shortcut/widget for a card, the image will have a very low resolution. I have tested several inages with the same result.

Happening both on Pixel 8 (android 14) and Galaxy S23 (android 14, One UI 6.1)

laureanorp commented 2 months ago

Sorry, screenshot here

Screenshot_20240819_142630_One UI Home

TheLastProject commented 2 months ago

Can confirm, weird nobody reported this before. I'd think this relates to https://github.com/CatimaLoyalty/Android/blob/74aad20d6be1d8ee59a163f52439bf64bd162bf9/app/src/main/java/protect/card_locker/ShortcutHelper.java#L31-L36 which is 3 years old code.

Probably need to take a look if these values are really correct.

TheLastProject commented 2 months ago

Hmm, okay, I can at least confirm it's not as simple as just increasing the scale. And the other values seem correct as far as I can tell from a quick look at the documentation.

I'm going to mark this "Help wanted", hopefully someone with more shortcut experience than me can take a look at this.