Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a setting to display battery information #17

Merged
merged 1 commit into from
Dec 26, 2020

Conversation

isalgueiro
Copy link
Contributor

Thanks for sharing this launcher, it's my preferred choice for Android TV boxes.

This year O Apalpador was kind enough to get me a Retroid Pocket 2; the thing is something like a portable console, without a touchscreen, and running Android, so I installed this launcher on it to make it easier to use with the d-pad.

It's working like a charm, but I'm missing some battery information in the home screen, so I made this little patch:

  • This is disabled by default, so this doesn't show 0% ? on devices without a battery
  • I use whatever BatteryManager thinks is the right icon for the current battery status. I find that icon pretty ugly in every device I tested this on, so in the future I may add a custom drawable to use as battery status icon.
  • No idea if the translations are right, I just used google translate here.
  • Tested on said Retroid thing and in an Android TV emulator at 720p.

Hope you find this patch useful. Happy holidays!

@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling b50a0cb on isalgueiro:battery-info into 8cf33ab on alescdb:master.

@alescdb alescdb merged commit 4a1b527 into alescdb:master Dec 26, 2020
@alescdb
Copy link
Owner

alescdb commented Dec 26, 2020

LGTM.
Thanks for the PR ! :-)

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.

None yet

3 participants