Skip to content

Conversation

@seer-by-sentry
Copy link

@seer-by-sentry seer-by-sentry bot commented Jun 4, 2025

Fixes ANDROID-E. The issue was that: Blocking database queries and a large file write on the main thread in EmpowerPlantActivity.onCreate cause UI freezes.

  • Removed allowMainThreadQueries() from AppDatabase to prevent database operations on the main thread.
  • Used ExecutorService to perform database queries and attachment operations in the background in EmpowerPlantActivity.
  • Shut down the ExecutorService in onDestroy() to release resources.

This fix was generated by Seer in Sentry, triggered by [email protected]. 👁️ Run ID: 59830

@codecov
Copy link

codecov bot commented Jun 4, 2025

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (c211625) to head (190d2bc).

Files with missing lines Patch % Lines
.../vu/android/empowerplant/EmpowerPlantActivity.java 0.00% 9 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #178   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         15      15           
  Lines        780     786    +6     
  Branches      43      44    +1     
=====================================
- Misses       780     786    +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

0 participants