fix: Prevent a NPE
Description
Both noAccountView() and onAccountAvailable() methods can return early, ending up in a RemoteViews not instanciated.
This fixes a crash spotted by sentry: https://murena-sas.sentry.io/projects/edrive/?project=4504355892101120
Screenshots
Technical details
Tests
Issues
10 commandments of code reviews
Summary by CodeRabbit
-
Bug Fixes
- Improved the app widget's update process by adding a safeguard to prevent null pointer exceptions, enhancing stability and reliability.
Edited by CodeRabbitAI