Commit graph

796 commits

Author SHA1 Message Date
Daniel Shokouhi ec5b2c14f9
Remove unused panel code (#1487) 2021-04-06 14:01:12 -04:00
Daniel Shokouhi 87ad57ef0d
Shortcut icon (#1486)
* Allow custom icon selection for shortcuts

* Pull in fix for webview flags

* Review comments

* Fix syntax per review comment
2021-04-06 11:51:50 -04:00
chriss158 9210a1ab14
Fix missing log fragment title (#1485) 2021-04-06 08:30:08 -04:00
chriss158 2f6e77ae80
Fix notification rate limit translation (#1484)
* Fix notification rate limit translation

* Add rate limit to log output
2021-04-06 08:28:04 -04:00
Daniel Shokouhi 8f3d6abc42
Fix retrieval of media player image (#1483) 2021-04-06 08:24:25 -04:00
chriss158 a9b719f75d
Fix slow settings startup (#1479) 2021-04-05 15:22:23 -04:00
chriss158 3e0af21849
Improve Show and Share Log (#1478)
- Fix crash on screen rotation
- Enabled screen rotation for settings activity
- Fixed first automatic scroll down after showing log
- Faster logcat reading
2021-04-05 15:18:56 -04:00
Daniel Shokouhi 6e9ac729f6
Implement action bar items on notification screens and add help icon to all sensors and other areas (#1467)
* Add help icon in toolbar to link to specific places in docs

* Update icon to fix issue with light theme

* Use action bar for managing notifications, add search

* Fix menu options when there are no notifications

* Set proper title for settings screens

* Add help icon to shortcuts screen, fix widget merge

* Review comments
2021-04-01 14:08:51 -04:00
Daniel Shokouhi 70d12cee95
Shortcuts entity (#1471)
* Add support for managing shortcuts to navigate to specific pages

* Separate pin and dynamic shortcuts

* New shortcut type of entity

* Set default for shortcut type
2021-04-01 13:36:21 -04:00
Daniel Shokouhi cf9be5fd07
Add new notification command to turn on device screen (#1469) 2021-04-01 13:09:33 -04:00
chriss158 6795c0d307
Improve getZones api call (#1466)
* Fix crash when receiving no zones from HA

* Log exception

* Add simple caching of zones

* Fix double refresh on start of SensorDetailFragment

* Log cause exceptions for integration api calls
2021-04-01 12:01:22 -04:00
chriss158 04d36016ae
Fix missing context for availableSensors in LocationSensorManager (#1464)
* Fix missing context for availableSensors in LocationSensorManager

* Fix lint

* Fix minimal sensors
2021-04-01 11:54:58 -04:00
chriss158 8b05c33c34
Add show and share logs feature (#1463)
* Add share logs feature

* Only read logs from the app itself

* Show alert to inform user that he may sharing sensitive data

* Add show log screen

* Fix share logs sensitive message

* Remove not needed constants

* Update share_logs_sens_message

Co-authored-by: Daniel Shokouhi <dshokouhi@gmail.com>

* Exclude github from sharing logs

Github does only support image sharing
Also fix permission denial error by adding Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION

Co-authored-by: Daniel Shokouhi <dshokouhi@gmail.com>
2021-04-01 10:58:39 -04:00
Daniel Shokouhi e6f7006dba
Add support for managing shortcuts to navigate to specific pages (#1460)
* Add support for managing shortcuts to navigate to specific pages

* Separate pin and dynamic shortcuts
2021-04-01 10:34:47 -04:00
Sissi91 94e1f15d04
Update CoverControl.kt (#1462)
* Update CoverControl.kt

* Update CoverControl.kt

* Update CoverControl.kt
2021-03-28 20:25:21 -04:00
chriss158 31a48dd884
Add search/filter feature to the "Manage Sensor" screen (#1430)
* Add setting "Show only enabled sensors"

Additional changes:
* Made "Disabled" sensor summary translatable
* Show "Enabled" as sensor summary if sensor is enabled but has no state

* Use only one "Enabled" string

* Add search feature + added filter/search feature to action bar

* Remove only_show_enabled_sensors preference

* Fix lint
2021-03-28 20:22:17 -04:00
chriss158 42ed8928dd
Rework high accuracy location service (#1455)
* Rework high accuracy location service

* Better translation for unkown address

* Fix unknown sensor state

* Simplify prettyAddress condition
2021-03-28 14:40:18 -04:00
Daniel Shokouhi 675a21be12
Make service field description optional to match core integrations (#1458) 2021-03-28 13:10:33 -04:00
Daniel Shokouhi eb3629181e
Use service call provided action title for reply actions (#1457) 2021-03-28 13:08:50 -04:00
Daniel Shokouhi 2d7e9e85fa
Add debug logs to troubleshoot URL switching (#1454) 2021-03-28 13:07:39 -04:00
Daniel Shokouhi 1106828d3b
Add battery temperature sensor (#1453) 2021-03-28 13:06:15 -04:00
chriss158 90af58977d
Fix clear_notification if notifications are in the auto group (#1452)
* Fix clear_notification if notifications are in the auto group

* Add better detection if auto group is used
2021-03-28 13:04:48 -04:00
Daniel Shokouhi 724e2a0fcd
Add some debug logs for next alarm sensor update logic (#1451)
* Add some debug logs for next alarm sensor update logic

* Lint
2021-03-28 12:56:36 -04:00
uvjustin 960db328ed
Update exoplayer to r2.13.2 (#1448)
* Update exoplayer to r2.13.2

* Add trailing newline

* Build media source implicitly

* Use 4x4 layout grid

* Remove unused dataSourceFactory and imports
2021-03-28 12:53:46 -04:00
Daniel Shokouhi 614e2de843
Open the more info controls on entities when long pressed in android 11 power menu (#1446) 2021-03-28 12:52:12 -04:00
chriss158 754d37849c
Fix statusbar color (#1431)
* Fix statusbar color when theme is not set in backend

* Fix crash setting color

* Fix lint

* Set statusbar color from event bus

* Fix lint
2021-03-28 12:46:59 -04:00
chriss158 9070ddb346
Improve location tracking on non GPS devices (#1426)
* Improve location tracking on non GPS devices

* Fixed crash enabling location from DisabledLocationHandler on Amazon devices (Non-GPS)
* Disable single accurate location sensor on non GPS devices
* Fixed enabled location tracking after onboarding even if location tracking was disabled
* Open settings, if location settings can't be opend (ex. Custom-ROM without GAPPS)

* Fix that the default setting does not set location sensors

* Do not enable singleAccurateLocation sensor if device has no GPS

* Make use availableSensors to hide singleAccurateLocation sensor

* Fix lint

* Fix disabling of singleAccurateLocation sensor on devices with GPS

* Enable all sensors while onboarding

* Fix code indentation
2021-03-28 12:35:50 -04:00
chriss158 3639d42937
Fix broken database migration (#1445) 2021-03-22 21:27:19 -04:00
chriss158 e197e86044
Add additional logging for MessagingService and NotificationManagerExtensions (#1442)
* Add additional logging for MessagingService and NotificationManagerExtensions

* Fix lint
2021-03-22 13:26:15 -04:00
Daniel Shokouhi 8da4a6df25
Ensure blurView is off when we are unlocked with a timeout (#1434) 2021-03-22 13:23:12 -04:00
chriss158 a24c36875e
Enable high accuracy mode when entering zone (#1415)
* Enable high accuracy mode when entering zone

Additional changes:
* Added possibility to enable/disable a sensor setting which will be displayed accordingly in the settings.
* Refactored "creating a list setting" into a method createListPreference
* Fire HA Event for every Zone Entered/Exited and not only for the first

* Fix compile errors after merge upstream

* Unify the use of expression geozone to zone

* High accuracy mode - use OR connected constraints

* Constraint were AND connected. Both constraints (if used) needed to apply
Now the are OR connected. One constraint need to apply.

* Rename setting "High accuracy mode zone expanded radius" to "High accuracy mode trigger range for zone"

* Default range is set to 300 meters, therefore the expanded zones are used

* Make conditions better readable
2021-03-22 12:55:14 -04:00
Daniel Shokouhi eba8f15530
Switch to a different method to get alarm ringtone, default to normal ringtone if alarm is null (#1428) 2021-03-11 15:43:51 -05:00
Daniel Shokouhi 79c3de84b4
Bump some dependencies (#1424) 2021-03-11 15:40:31 -05:00
Daniel Shokouhi 9f31f54249
Prevent converting NaN values in pressure sensor (#1423) 2021-03-11 15:38:11 -05:00
Daniel Shokouhi 4dc3297a4c
Fix out of bounds exception in field adapter (#1422)
* Fix out of bounds exception in field adapter

* Use doAfterTextChanged to clean up per code review
2021-03-11 15:35:08 -05:00
Daniel Shokouhi 04ff1dd360
Only get the state of importance if we have running processes (#1421) 2021-03-11 15:31:02 -05:00
Daniel Shokouhi 640e83d54c
Catch crash when activity can't start due to missing default browser (#1420) 2021-03-11 15:26:54 -05:00
Justin Bassett 36281bfdc4
Don't use empty translations. (#1419) 2021-03-11 15:20:25 -05:00
Daniel Shokouhi f38ec600e3
Use a custom user agent string to avoid being blocked (#1418) 2021-03-10 15:37:10 -05:00
Daniel Shokouhi 90b9c52540
Fix blank title for authenticator (#1416)
* Fix blank title for authenticator

* Review comments
2021-03-10 15:33:29 -05:00
Alfiegerner d971d50941
Add BLE Transmitter setting to turn on / off transmitter. (#1413)
* Add BLE Transmitter setting to turn on / off transmitter.  Notification command will now toggle the transmitter and this setting, if the sensor is enabled.

* Change setting names they're ordered correctly.  This is a slight breaking change, as people previously stored IDs will neeed to be re-added.

* Revert 'id' from labels.
2021-03-09 17:06:32 -05:00
Daniel Shokouhi 588fc61d0c
Save widget states so we can restore them when calls fail (#1412)
* Save widget states so they can be restored if the update call fails

* Fix db crash
2021-03-08 09:57:56 -05:00
Nelson Osacky d4b5819693
Bump versions, Kotlin, Gradle, etc. (#1411) 2021-03-08 09:03:32 -05:00
Daniel Shokouhi 6109ce466c
Prevent crash when removing default channel (#1405) 2021-03-08 09:00:42 -05:00
Daniel Shokouhi 94a86de4d5
Allow retry attempts for biometric prompt, enable skip confirmation for faster access (#1404) 2021-03-08 08:57:48 -05:00
Daniel Shokouhi 46b0b87e59
Restore night theme (#1403)
* Restore night theme

* Don't pull translations on PR.

Co-authored-by: Justin Bassett <bassett.justint@gmail.com>
2021-03-05 14:25:28 -05:00
Daniel Shokouhi 23a7e54d60
Add a link during onboarding for new users (#1399) 2021-03-05 10:48:55 -05:00
Justin Bassett 3863bace50
Pull translations at build time (#1397)
* First attempt at pulling Lokalise at build time.

* Temporarily download in PRs.

* Remove null outputs

* Double quotes?

* Oops.

* Forgot the `inputs.`

* Don't override files (aka English).

* Override files when extracting...

* Put args on correct command.

* Now that it works remove push action.

* Fix copy pasta.
2021-03-05 10:37:49 -05:00
Home Assistant Bot c6fff9216d
Lokalise: updates (#1394) 2021-03-03 09:55:59 -05:00
Bram Kragten d66c568d98
Make sure we don't get double / (#1393) 2021-03-03 09:46:28 -05:00