Skip to content

Conversation

@seer-by-sentry
Copy link

Fixes ANDROID-3. The issue was that: Room database configured with allowMainThreadQueries causes synchronous DELETE and INSERT operations to block the UI thread during activity load.

  • Removed .allowMainThreadQueries() from AppDatabase configuration.
  • Introduced ExecutorService in EmpowerPlantActivity and MainFragment.
  • Wrapped all database operations in dbQuery() and insertMultipleStoreItems() to execute asynchronously on a background thread.

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

Not quite right? Click here to continue debugging with Seer.

@codecov
Copy link

codecov bot commented Dec 30, 2025

Codecov Report

❌ Patch coverage is 0% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 0.00%. Comparing base (1feb90a) to head (889c34f).

Files with missing lines Patch % Lines
.../vu/android/empowerplant/EmpowerPlantActivity.java 0.00% 20 Missing ⚠️
.../example/vu/android/empowerplant/MainFragment.java 0.00% 4 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main    #199   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files         16      16           
  Lines        885     869   -16     
  Branches      65      65           
=====================================
+ Misses       885     869   -16     

☔ 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