PixelExperience / android-issues

Issue tracker
95 stars 41 forks source link

The battery widget isn't working properly #2158

Closed ralph950412 closed 2 years ago

ralph950412 commented 2 years ago

Build date

PixelExperience_miatoll-12.1-20220401-0434-OFFICIAL

Expected Behavior

It should show the device and the connected devices' battery percentage

Current Behavior

It's showing "Loading information" instead of the way it should But in some scenarios it works, bit it's stuck at a status and after some time it went back to "Loading information"

Possible Solution

I know a little about android so I think I know what's wrong with it The "Settings Services" isn't able to fetch data on battery change.

Steps to Reproduce

  1. Long press home screen and select "Widgets"
  2. Find "Battery" under "Settings Services"
  3. Place it on the home screen
  4. It shows "Loading Information"
  5. Screen recording here: https://photos.app.goo.gl/dfGEb2aNuorH33E69

/device miatoll /version twelve

pixelexperiencebot commented 2 years ago

Issue created! You can close at any time by commenting /close

ymstnt commented 2 years ago

It's now working as expected in PixelExperience_Plus_miatoll-12.1-20220517-2311-OFFICIAL

If someone could confirm that it works on non-plus version too, that would be great.

ralph950412 commented 2 years ago

It's now working as expected in PixelExperience_Plus_miatoll-12.1-20220517-2311-OFFICIAL

If someone could confirm that it works on non-plus version too, that would be great.

Fixed in May update

ThatOneCalculator commented 10 months ago

Can I ask what fixed this? I'm getting the same issue in GrapheneOS and was wondering if there's a patch that can be cherry picked.

ralph950412 commented 10 months ago

Can I ask what fixed this? I'm getting the same issue in GrapheneOS and was wondering if there's a patch that can be cherry picked.

I don't consider it very doable, as such feature depends on fuelgauge stuff in SettingsGoogle (iirc). https://github.com/PixelExperience/vendor_pixel-framework/blob/thirteen/SettingsGoogle/libs/SettingsGoogle-lib.jar

Edit: It's nostalgic to see that I actually helped other people opening issues here XD

ThatOneCalculator commented 10 months ago

Unfortunately it seems that they're very....not receptive to that fix 😔 Might just switch to another ROM