]> git.eshelyaron.com Git - emacs.git/commit
Minor adjustments to battery.el on Android
authorPo Lu <luangruo@yahoo.com>
Sun, 16 Jun 2024 07:27:43 +0000 (15:27 +0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 17 Jun 2024 10:43:52 +0000 (12:43 +0200)
commitaa9437aa743e7b6c92076d7169d545af9a541d62
tree97770856b085bbe2d0904edec26168b1745e03ab
parentb64c05684bf0ff3a036bf562eb8e8e2bccf81218
Minor adjustments to battery.el on Android

* src/android.c (android_query_battery):

* java/org/gnu/emacs/EmacsService.java (queryBattery19)
(queryBattery): Reorder items in value for consistency with
Fandroid_query_battery.

* lisp/battery.el (battery-status-function): Select
battery-android only when android-query-battery is present.
(battery-android): Return temperature and correct values of
power source constants.

(cherry picked from commit a39f6480ea5b6d3f81db90808123cdeb54790787)
java/org/gnu/emacs/EmacsService.java
lisp/battery.el
src/android.c