react-native-idle-timer/android
heath-clink e34ac0d1f9
fix for android crash (#35)
* fix for android crash

For some reason, a recent commit removed the check for a null return
from `getCurrentActivity()`. But since `getCurrentActivity()` might return
null, the app will crash with a NullPointerException.

This restores the null check.

It also fixes inconsistent handling of null `tag` argument in both
iOS and Android. This does not affect usage from JS because the JS
interface will not pass null to that argument; however other native
code could still call these methods and pass null for `tag`.

* remove unnecessary parens

---------

Co-authored-by: Marc Shilling <marcshilling@gmail.com>
2024-03-08 13:10:30 -05:00
..
gradle/wrapper mimic the gradle setup from react-native-builder-bob 2021-09-07 15:38:37 -04:00
src/main fix for android crash (#35) 2024-03-08 13:10:30 -05:00
build.gradle finishing touches 2021-09-16 14:06:56 -04:00
gradlew mimic the gradle setup from react-native-builder-bob 2021-09-07 15:38:37 -04:00
gradlew.bat mimic the gradle setup from react-native-builder-bob 2021-09-07 15:38:37 -04:00