Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reseting thumb image #26085

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Reseting thumb image #26085

wants to merge 2 commits into from

Conversation

kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Nov 24, 2024

Issues Fixed

Fixes #25939

Before After
Screen.Recording.2024-11-24.at.14.41.33.mov
Screen.Recording.2024-11-24.at.14.33.32.mov

@kubaflo kubaflo requested a review from a team as a code owner November 24, 2024 13:55
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Nov 24, 2024
Copy link
Contributor

Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@@ -63,6 +62,11 @@ public static async Task UpdateThumbImageSourceAsync(this SeekBar seekBar, ISlid
if (seekBar.IsAlive() && thumbDrawable != null)
seekBar.SetThumb(thumbDrawable);
}
else if (slider.Handler is SliderHandler sliderHandler)
{
seekBar.SetThumb(sliderHandler.defaultThumbDrawable);
Copy link
Member

Choose a reason for hiding this comment

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

Can we load the default thumb drawable from the android resources? I'm sure the default drawable here can probably get pulled from the android resources

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, I was initially trying with this: `seekBar.SetThumb(context.GetDrawable(Resource.Drawable.abc_seekbar_thumb_material)), but I couldn't make it revert back to a default color, but I figured it out

@jsuarezruiz
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

App.WaitForElement("ChangeThumbImageSourceButton");
App.Click("ChangeThumbImageSourceButton");
App.Click("ResetThumbImageSourceButton");
VerifyScreenshot();
Copy link
Contributor

Choose a reason for hiding this comment

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

Snapshots available in the latest build:
image

Could you commit the images?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android, IOS, Mac] Unable to Remove Thumb Image in Slider Control
3 participants