Skip to content

Develop - Proximity sensor fix#484

Merged
sameerasw merged 9 commits into
mainfrom
develop
Jun 4, 2026
Merged

Develop - Proximity sensor fix#484
sameerasw merged 9 commits into
mainfrom
develop

Conversation

@sameerasw

Copy link
Copy Markdown
Owner

This pull request introduces several improvements and refactors to the flashlight notification pulse feature, streamlining proximity sensor handling and updating language translations for French and Indonesian. The most significant code changes involve moving proximity sensor logic from the accessibility service into the flashlight handler for better encapsulation and reliability. Additionally, translation strings have been updated for clarity and localization quality.

Flashlight Pulse and Proximity Sensor Refactor:

  • Moved proximity sensor logic from ScreenOffAccessibilityService to FlashlightHandler, encapsulating proximity checks within the handler and removing direct sensor management from the service. This simplifies the service and ensures proximity is checked only when needed for flashlight pulses. [1] [2] [3] [4] [5] [6]
  • Updated the flashlight pulse logic to perform proximity checks asynchronously within the coroutine that handles the pulse, ensuring the flashlight only pulses when the device is face-down (proximity blocked) if the relevant setting is enabled. [1] [2]

Build Configuration:

  • Re-enabled and uncommented the optimized debug build configuration in app/build.gradle.kts, enabling minification and resource shrinking for debug builds to better simulate release conditions.

Localization Updates:

  • Improved French translations for the favorites widget strings to be more accurate and user-friendly.
  • Enhanced Indonesian translations throughout the app, including UI labels, descriptions, and warnings, for better clarity and localization quality. [1] [2]

@sameerasw sameerasw self-assigned this Jun 4, 2026
@sameerasw sameerasw added the bug Something isn't working label Jun 4, 2026
@sameerasw sameerasw merged commit 3825f31 into main Jun 4, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Essentials Progress Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant