v0.52.0 - 2025-05-22 10:50
Commit history: v0.51.0...v0.52.0
Changelog
Fixed
-
Bump
termux-shared
toda3a0ac4e2
. Related commit termux/termux-app@4de0caac. Related commit termux/termux-app@da3a0ac4. Related commit 28bc8c85. (a3a231e6
) -
JobSchedulerAPI: Fix
ResultReturner.returnData()
being called multiple times for different printing since 51a02f4 and 61262f7 throwingConnection refused
exceptions for calls after the first one instead of printing, and also refactor actions out to functions and change action output format.The
ResultReturner.returnData()
will be called once for each action.The schedule job action will not print all pending jobs at end and only the pending job that was scheduled if successful. Users should use
termux-job-scheduler -p
to get all pending jobs.The
termux-job-scheduler --p
action will printNo jobs found
instead ofNo pending jobs
if no pending job exists.The
termux-job-scheduler --cancel-all
action will now print all jobs to be cancelled, orNo jobs found
found.The job description will use
4
spaces instead of a tab after the path.(
6fbf61aa
) -
Fix
termux-notification --icon
not working for release builds as icon drawables were being removed by resource shrinker possibly related to 6ef2618.Use standard Android API to get resource id for drawable icon instead of using reflection into drawable class. Additionally use
String.format()
so that resource shrinker does not remove icons used byNotificationAPI
for release builds.Closes #483.
(
1639e73f
) -
Fix
termux-notification
actions not updating or conflicting between notifications due to same request code being used for thePendingIntent
of all actions and also specifyPendingIntent.FLAG_IMMUTABLE
to prevent any modification.(
7c1759a3
) -
BatteryStatusAPI: Output double value instead of string for temperature field with value rounded up to 1 decimal place. (
97b41002
) -
Manually add stack trace of caller function that called
ResultReturner.returnData()
to exception messages as exceptions thrown insideRunnable
lambda thread will not include it by default. (922f3585
) -
Fix disabling obfuscation added in 6ef2618 caused due to wrong proguard file being used.
This caused Termux classes like
ReportInfo
to be obfuscated making stacktraces harder to read.Related commit termux/termux-app@da3a0ac4.
(
28bc8c85
) -
Explicitly specify
PendingIntent.FLAG_MUTABLE
flag forPendingIntent
passed toNfcAdapter.enableForegroundDispatch()
. (5040a66f
) -
Check if
NfcAdapter
is available and notnull
inNfcActivity.onResume()
in addition toonCreate()
before calling its methods otherwise would trigger aNullPointerException
. (4ba140dd
) -
Fix
termux-nfc -t x
resulting in error notification being shown as method was not returned from after sending error resulting inResultReturner.returnData()
being called twice. (c986fb09
)