Skip to content

[housekeeping] Automated PR to fix formatting errors#3

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
housekeeping/fix-codeformatting
Open

[housekeeping] Automated PR to fix formatting errors#3
github-actions[bot] wants to merge 1 commit into
mainfrom
housekeeping/fix-codeformatting

Conversation

@github-actions

Copy link
Copy Markdown

Automated PR to fix formatting errors

@github-actions github-actions Bot force-pushed the housekeeping/fix-codeformatting branch 5 times, most recently from 36a3818 to 7b3b52e Compare March 7, 2025 00:07
@github-actions github-actions Bot force-pushed the housekeeping/fix-codeformatting branch 2 times, most recently from 8bea497 to ad1f5c5 Compare March 14, 2025 00:07
@github-actions github-actions Bot force-pushed the housekeeping/fix-codeformatting branch 4 times, most recently from 8087f1a to ca1e862 Compare March 27, 2025 00:06
@github-actions github-actions Bot force-pushed the housekeeping/fix-codeformatting branch 3 times, most recently from 53bf511 to 1d5371b Compare April 3, 2025 00:07
@github-actions github-actions Bot force-pushed the housekeeping/fix-codeformatting branch 4 times, most recently from 76b6820 to b2e75c3 Compare April 11, 2025 00:08
@github-actions github-actions Bot force-pushed the housekeeping/fix-codeformatting branch 3 times, most recently from b2646aa to cd396dd Compare April 22, 2025 00:08
@github-actions github-actions Bot force-pushed the housekeeping/fix-codeformatting branch 2 times, most recently from 3b9964b to 0525309 Compare May 6, 2025 00:07
@github-actions github-actions Bot force-pushed the housekeeping/fix-codeformatting branch 4 times, most recently from 1bc34ac to 262d85f Compare May 14, 2025 00:08
@github-actions github-actions Bot force-pushed the housekeeping/fix-codeformatting branch from 262d85f to b9d34fa Compare May 15, 2025 00:08
github-actions Bot pushed a commit that referenced this pull request Jan 20, 2026
…tnet#33071)

App crashes because of changing a shared Drawable on the fly. I found
out it is the SearchBar. It only happens on Android and in large apps
with lots of screens. Unfortunately I can't reproduce it in the
TestSuite. But by reading the docs of Android this crash is common and
caused by changing a Drawable which is still referenced. With a custom
SearchBarHandler the issues is resolved.

```Backtrace (top frames):
  #00 pc 00000000006b8694  /system/lib64/libhwui.so
      android::getRootAlpha(_JNIEnv*, _jobject*, long) +4

  #1 pc 0000000002256c90  /memfd:jit-cache (deleted)
      art_jni_trampoline +112

  #2 pc 000000000223bc4c  /memfd:jit-cache (deleted)
      android.graphics.drawable.VectorDrawable.-$$Nest$smnGetRootAlpha +108

  #3 pc 000000000223bb20  /memfd:jit-cache (deleted)
      android.graphics.drawable.VectorDrawable$VectorDrawableState.getAlpha +144

  #04 pc 00000000025c50e0  /memfd:jit-cache (deleted)
      android.graphics.drawable.VectorDrawable.getAlpha +128

  #5 pc 00000000025c4f9c  /memfd:jit-cache (deleted)
      android.graphics.drawable.VectorDrawable.getOpacity +124

  dotnet#6 pc 00000000025c1ea8  /memfd:jit-cache (deleted)
      android.widget.ImageView.isOpaque +152

  dotnet#7 pc 000000000227979c  /memfd:jit-cache (deleted)
      android.view.View.invalidateInternal +428

  dotnet#8 pc 00000000025c4790  /memfd:jit-cache (deleted)
      android.widget.ImageView.invalidateDrawable +256

  dotnet#9 pc 000000000224419c  /memfd:jit-cache (deleted)
      android.graphics.drawable.Drawable.invalidateSelf +156

  dotnet#10 pc 000000000260e710  /memfd:jit-cache (deleted)
      android.graphics.drawable.VectorDrawable.setTintList +192

  dotnet#11 pc 00000000025d0094  /memfd:jit-cache (deleted)
      **android.graphics.drawable.Drawable.setTint +148**
```

### Description of Change

- Changes tinting of Androids SearchBar to unified setTint instead of
setColorFilter
-  Mutates the drawable before setting the tint.

### Issues Fixed
Issue is fixed with a custom handler for now.

Fixes dotnet#33070
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.

0 participants