KEMBAR78
Fix android image loading into views by Redth · Pull Request #6394 · dotnet/maui · GitHub
Skip to content

Conversation

@Redth
Copy link
Member

@Redth Redth commented Apr 22, 2022

  • Clean up code using lambdas in java
  • Use the MauiCustomViewTarget's view directly

I think the main fix here is using the builder with caching was not retaining the correct builder instance in those cases, this fixes the logic.

fixes #6231
fixes #6228
fixes #6363
fixes #6067

Screenshot_1650588688

- Clean up code using lambdas in java
- Use the MauiCustomViewTarget's view directly

I think the main fix here is using the builder with caching was not retaining the correct builder instance in those cases, this fixes the logic.
@Redth Redth requested a review from PureWeen April 22, 2022 00:50
@Redth Redth added this to the 6.0.300-rc.3 milestone Apr 22, 2022
@Redth Redth requested a review from jsuarezruiz April 22, 2022 00:52
Copy link
Member

@jonathanpeppers jonathanpeppers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a real test failure?

InvalidSourceFailsToLoad
Assert.Equal() Failure\nExpected: List<String> ["LoadingStarted", "LoadingFailed"]\nActual:   List<String> ["LoadingStarted"]

I clicked retry, just in case.

@Redth
Copy link
Member Author

Redth commented Apr 22, 2022

I think it is a real failure, but I haven't quite figured out why yet.

@jonathanpeppers
Copy link
Member

Maybe it only passed because things weren’t fully working before.

@Redth
Copy link
Member Author

Redth commented Apr 22, 2022

Not sure, I can't seem to make it fail locally... Could be an API level thing I guess, or perhaps the tests are taking too long in CI?

Screen Shot 2022-04-21 at 11 09 12 PM

@Redth
Copy link
Member Author

Redth commented Apr 22, 2022

Though I suppose that test is now timing out so that's probably not correct.

@Redth
Copy link
Member Author

Redth commented Apr 22, 2022

Ok I'm not sure what's happening inside Glide, but the load does actually take this long to fail. I was setting breakpoints in the java code, and from calling .into(target) to onLoadFailed in the target, is like 5 seconds with an invalid filename...

@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@Redth Redth merged commit 3a742ce into main Apr 22, 2022
@Redth Redth deleted the dev/redth/fix-android-images branch April 22, 2022 16:33
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2023
@samhouts samhouts added the fixed-in-6.0.300-rc.3 Look for this fix in 6.0.300-rc.3! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-image Image control fixed-in-6.0.300-rc.3 Look for this fix in 6.0.300-rc.3! platform/android

Projects

None yet

5 participants