Skip to content

Conversation

asolovay
Copy link
Contributor

@asolovay asolovay commented Sep 4, 2025

I was getting code warnings in Android Studio, made some minor changes to resolve them:

  • used WakeLock.acquire(timeout) instead of acquire()
  • removed the redundant qualifier for POWER_SERVICE

Once this PR is approved, I'll set up a corresponding docs CL to update the description to explain the acquire() parameter.

asolovay and others added 2 commits September 4, 2025 12:54
I was getting code warnings in Android Studio, made some minor changes to resolve them:

* used WakeLock.acquire(timeout) instead of acquire()
* removed the redundant qualifier for POWER_SERVICE

Once this PR is approved, I'll set up a corresponding docs CL to update the description to explain the acquire() parameter.
@asolovay asolovay marked this pull request as ready for review September 4, 2025 20:19
@asolovay
Copy link
Contributor Author

asolovay commented Sep 5, 2025

Made Alice's suggested changes. Alice, I've also sent you a CL to update the DAC documentation -- when you approve that I'll submit it and merge this PR.

@asolovay asolovay merged commit 30ed522 into main Sep 5, 2025
5 checks passed
@asolovay asolovay deleted the wakelock-warning-fix branch September 5, 2025 19:18
dturner added a commit that referenced this pull request Sep 23, 2025
* main: (74 commits)
  Add basic WindowInsetsRulers cases (#621)
  Adding shadows code snippets (#620)
  Update the wear preview code
  Update state based (#619)
  add WindowInsetsRulers snippet (#616)
  Migrate snippets from dac/training/wearables/tiles/screen-size (#617)
  Resolve warnings in the Wakelock code snippets (#615)
  Disabling some "unused" warnings (#610)
  Add android_wear_tile_version_fallback (#614)
  Add viewmodel screen for KMP (#613)
  Fix missing snippet (#612)
  Add KMP ViewModel snippets (#611)
  docs(modifiers): Add TODOs for inspectableProperties lint warnings (#589)
  Fix: Prevent memory leak from implicit SAM conversion (#588)
  Fix(gestures): Handle pointer events inside awaitPointerEventScope (#590)
  Lint: Use specialized state holders to avoid autoboxing (#591)
  Refactor: Rename Composable functions to follow naming conventions (#592)
  Refactor(text): Use KTX extension for isDigitsOnly check (#593)
  Refactor(SearchBar): Reorder modifier parameter to follow convention (#594)
  Add padding to avoid overwriting TimeText (#529)
  ...
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.

3 participants