Skip to content

Add snippets related to View Threading Violations - #989

Open
huewu wants to merge 7 commits into
mainfrom
anr-snippets
Open

Add snippets related to View Threading Violations #989
huewu wants to merge 7 commits into
mainfrom
anr-snippets

Conversation

@huewu

@huewu huewu commented Jul 23, 2026

Copy link
Copy Markdown
Contributor
  • Create ViewThreadingViolationSnippet.kt
  • Add snippet for switching to Dispatchers.Main in coroutines
  • Add snippet for View.registerCalledFromWrongThreadListener (API 37)

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@snippet-bot

snippet-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 2 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@huewu

huewu commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

As requested, I move the file location from misc to 'views/anr'. Please take a look. Thanks!

huewu and others added 6 commits August 12, 2026 13:16
* Create ViewThreadingViolationSnippet.kt
* Add snippet for switching to Dispatchers.Main in coroutines
* Add snippet for View.registerCalledFromWrongThreadListener (API 37)
* Create ViewThreadingViolationSnippet.kt
* Add snippet for switching to Dispatchers.Main in coroutines
* Add snippet for View.registerCalledFromWrongThreadListener (API 37)

# Conflicts:
#	misc/src/main/java/com/example/snippets/anr/ViewThreadingViolationSnippet.kt
…tionSnippet.kt

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@huewu
huewu enabled auto-merge (squash) August 12, 2026 04:30
@huewu

huewu commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

@kkuan2011 Hi Kuan, coudl you please take a look this PR? I moved the folder from misc to views/anr as suggested.

@kkuan2011 kkuan2011 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, thanks for moving it over!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants