Commit graph

146 commits

Author SHA1 Message Date
Home Assistant Bot e1c9c2175b
Lokalise: updates (#697) 2020-08-02 14:47:40 -04:00
Justin Bassett f64fbafd38
Disable Sentry.io for debug builds. (#696) 2020-08-02 14:40:44 -04:00
Justin Bassett fbf53314ea
Request accurate location when we update sensors. (#692) 2020-08-02 14:37:25 -04:00
Justin Bassett 9c3635df29
Ensure the correct class is used for broadcast of location updates. (#695) 2020-08-02 14:34:04 -04:00
Justin Bassett 46661d4518
Fix location tracking (#691)
* Fix location tracking.

* Fix requesting accurate location.
2020-08-01 20:49:10 -04:00
Justin Bassett b2fd541c9c
Migrate to Sentry and remove Crashlytics (#686) 2020-08-01 09:36:37 -04:00
Justin Bassett bf29174a4a
Minimal Android Flavor (#682)
* Initial rip out of most of the Googley stuff.

* Lokalise plugin and dependencies removed.
They would be more useful if we had a large app with many translations.  However, with most of our UI being a PWA the usefulness of it is very limited.

* Both apps now build.... Yay

* Formatting.

* Tests and checks pass.

* Make sure Github Actions are up to date.

* Fix more unit tests.

* ktLint

* Use config class for gradle dependencies.
2020-07-31 07:46:54 -04:00
Justin Bassett f468ecefdc
Bugfix/various fixes (#674) 2020-07-20 21:59:07 -07:00
Justin Bassett 16073dccbf
Allow the firebase instance id be optional. (#673)
This is discouraged but helpful for contributors.  This way we don't need everyone to setup firebase just to help on the app.
2020-07-20 09:13:14 -04:00
Justin Bassett 359bcefef4
Ensure we have permissions before trying to get Wifi data (#669) 2020-07-14 21:49:38 -07:00
Justin Bassett 00324f0747
Fix translation. (#668)
When lokalise integration was down this got missed.
2020-07-13 17:37:21 -04:00
Justin Bassett a99f9ebccc
Only update registration when we are actually connected to HA. (#663)
* Only update registration when we are actually connected to HA.
Various lint warnings.

* Fix ktlint.
2020-07-13 09:25:54 -04:00
Justin Bassett 5ec2efd007
Ensure sensors only start when we are actually logged in. (#662) 2020-07-13 09:16:24 -04:00
Justin Bassett cc70c1a6ac
Ensure thread safety around NsdManager. (#664) 2020-07-13 09:09:56 -04:00
chriss158 a7a46787ef
Fix widget service calls with numbers (#640) (#650)
* Widget service calls will fail, if a number for any field is used.
Because the GSON parser will parse every integer to a double.
This is especially a problem on the service alarm_control_panel.alarm_disarm
which needs a code to disarm the alarm panel.
So every code will be converted to .0 (eg. 1234 would be 1234.0)
Solution: Use Jackson instead of gson
GSON problem described here (not fixed):
https://github.com/google/gson/issues/1084
2020-07-07 15:58:51 -04:00
Neonicus 50d80413ce
Authentication Dialog Enhancement (#633)
* Authentication Dialog Enhancement

* Add "Remember" checkbox

* Add button for password visibility
2020-07-07 15:50:37 -04:00
Home Assistant Bot f419fca874
Lokalise: updates (#657) 2020-07-07 15:09:43 -04:00
Justin Bassett 949a826e15
Hot fix removing authentication from settings. (#651)
Was causing crashes.
2020-07-05 10:51:04 -04:00
Neonicus 756556046a
Fix Biometric Unlock & Enhancement (#625)
* Fix Biometric Unlock
* Add Prompt Unlock function directly in WebViewActivity
* Added session timeout in app settings
* App is locked when resumed (after session timed out)
* When the application is locked, the screen is blurred (no quite obnoxious splash screen to look at), which allows the HA frontend to be loaded before or during unlocking
* No button needs to be touched for unlock
* When the unlock prompt is displayed, the back button close the app
* Fix issues #555 and #587
2020-07-05 10:09:17 -04:00
Home Assistant Bot d234ec13e3
Lokalise: updates (#648) 2020-07-04 19:44:33 -04:00
chriss158 eca7b5779f
Fix left empty notifications groups (#643)
* Fix left empty notifications groups

* If user clicked on a notification and this notification was in group, the left empty notification group was not deleted.
* If the notification ran into timeout and therefore was deleted and the notification was in group, the left empty notification group was not deleted.
* If a notification with a tag and a group is used and the user decides to remove the group from notification (using the same tag property), the left empty notification group was not deleted.

* Use NotificationManagerCompat instead of NotificationManager

* To be more compatible, use NotificationManagerCompat all over

* Refactored two openUri call and delete dead handleIntent method

* Fix not working clickAction

* Because of missing cancel current, the clickAction used a false intent
2020-07-04 19:22:53 -04:00
Neonicus 73a0934de3
ShowError Enhancement (#637)
- Fix issue #528
- ShowError now show detailed SSL error
- ShowError now show error description of onReceivedError()
2020-06-21 20:48:41 -04:00
Neonicus 31ecdb7ada
Fix Orientation Change (#636)
- Fix issue #537
- Fix screen orientation change in OnboardingActivity (Discovery fragment, Manual fragment, Authentication fragment & Integration fragment included)
2020-06-18 15:20:24 -04:00
chriss158 e16bc38a74
Additional notification group fixes (#635)
* If only the group and the notification inside should be canceled, then the whole group gets now canceled,
instead of first cancel the notification and then the group. If the group is canceled, all notification inside of the group gets canceled.
With this logic we save one call of cancel method.
2020-06-18 15:10:40 -04:00
Neonicus c352fbce5f
Add CookieManager (#629)
* Add CookieManager

CookieManager added to accept cookies in Webview

Fix #548

* Replace CookieManager by cookieManager

Replace "CookieManager.getInstance().setAcceptThirdPartyCookies(webView, true)" by " cookieManager.setAcceptThirdPartyCookies(webView, true)"
2020-06-18 13:03:52 -04:00
chriss158 18c978b826
Fix notification groups (#627)
* Fix notification groups

* Fixed empty notification group left, if all notification in groups are deleted

* Fixed not working notification grouping, if same tag and group are used before or in same message
2020-06-16 15:22:55 -04:00
Home Assistant Bot fe789b47e2
Lokalise: updates (#623) 2020-06-11 15:55:46 -04:00
Justin Bassett 247cef3c72
Fix lint issues (#618)
* Increase tool version, enable linting again.

* Fix lint errors.

* Ensure ktlint is working.

* Use correct build tools in travis.
2020-06-11 13:15:50 -04:00
hasenbolle 0b0670a04e
Notification improvements (HTML formatting, Grouping, Subject, led color, vibration pattern, persistant, timeout, importance, clickAction rel link fix) (#612)
* Notification improvements

* Renamed property priority to importance, ttl to timeout

* Rename "Default channel" to "General" (#593)

* Set led color for notification (#422)

* Set vibration pattern for notification (#357)

* Set persistent for notification (#403)

* Fix ClickAction with relative Lovelace Link not working (#605, #486)

* Rename notification icon property to icon_url
2020-06-10 15:08:47 -04:00
Neonicus 69453ac6a7
Fix Keyboard in Fullscreen mode with Notch (#613)
Fix "White box appears when keyboard is displayed" in fullscreen mode with notch screen
2020-06-09 20:51:44 -04:00
Aidan Timson 54aa95b0e4
Disable setting if get_panels is not available or fails (#578)
* Disable setting if get_panels is not avaliable or fails

* Unused import
2020-05-04 13:54:16 -04:00
CraftyKoala f2f07b025b
Implementing Android notification channels (#574)
* Implemented a quick solution to utilize channels on android to differentiate notifications.

* Implemented removing of notification channel. Restructured onMessageReceived.
2020-05-04 10:12:05 -04:00
Justin Bassett 8ec9de74eb
Fix crashes that last shortcuts caused. (#576)
* Catch the exceptions because panels call doesn't exists yet.
2020-05-04 10:09:53 -04:00
Aidan Timson d9cd0f502b
Add Panel Shortcuts (#562)
* Add Panel Shortcuts

* Remove unused imports

* Lint

* Cleanup

* Use localised strings for title

* Cleanup logs

* Fix strings

* Change map logic

* Move to connection-status

* Move logic for pinned shortcuts to new activity

* lint

* Reset strings formatting

* Lint

* lint

* Lint

* Remove activity for second fragment and move into directory

* Lint

* Lint

* Lint

* Lexographic
2020-05-04 09:38:39 -04:00
Justin Bassett e28d0fee62
Bugfix/various (#546)
* Catch geocode sensor crashes.

* Remove battery from location sensor.
2020-04-03 08:24:56 -07:00
James Yox 825dd78f1e
Added ChargingBroadcastReceiver which can instantly update plugged in… (#525)
* Added ChargingBroadcastReceiver which can instantly update plugged in status

* Couple formatting changes noticed after pushing. Will squash this message

* Addressed PR Comments

* More PR comments!

* Pulled out logic into SensorUpdater

* Couple thigns I noticed after pushing... because of course I did.

* Removed unnecessary Binds
2020-03-29 14:23:11 -04:00
Jeroen Seegers 4a9c6f0283
Add a seperate battery_state sensor (#530)
* Remove Battery State related information from Battery Level

* Extract determining battery icon to own method

* Update battery icon method with new parameters

* Add second battery sensor, Battery State

* Calculate battery percentage in own method
2020-03-29 08:16:05 -04:00
Justin Bassett f6618527d4
Geocoded Location Fixes (#516)
* Ensure we don't return location in background if not requested.

* Add minimum accuracy to geocoded address.
2020-03-13 22:06:08 -07:00
Justin Bassett 4eae12a586
Make sure sticky settings honored. (#517) 2020-03-13 22:05:37 -07:00
Neonicus ed58752a09
Add Lock/Unlock App with biometric or screenlock credentials (#484) 2020-03-07 08:08:15 -05:00
Tim 43f50f94c7
Add support for additional input triggers for adding ssids. A button has been added and clicking save with a none empty input field will also add the ssid to the list. (#502) 2020-03-06 18:44:32 -05:00
Kevin T. Berstene ecd2af4304
Changed permissions request screen during setup to be scrollable (#500) 2020-03-06 18:41:54 -05:00
Paulus Schoutsen e1d49cbbab
Use same flags for actions as clickAction. (#499) 2020-03-04 19:59:48 -08:00
Justin Bassett 0d829bf451
Fullscreen Video Fix (#491)
Fix for small video size from "Developer Tools> States" when PiP is expanded (back in app)
2020-03-04 13:28:32 -05:00
Justin Bassett 75f9d1e47c
Fullscreen & Keyboard Fix (#492)
Fix fullscreen when virtual keyboard is show
2020-03-04 13:22:45 -05:00
Justin Bassett 5f1c72586b
Support for multiple ssids. (#485)
* Support for multiple ssids.

* Implementation of requested changes.

* Implementation of the official way of showing a custom preference dialog.
2020-03-04 13:16:13 -05:00
Justin Bassett 1591109dc7
Geocode Sensor. (#476) 2020-02-26 11:19:52 -08:00
Justin Bassett 8a04013cb6
Ensure on click works when sticky is true. (#477) 2020-02-26 11:18:32 -08:00
Neonicus 8d630d31bc
Add fullscreen support for videos & PIP mode (#471)
* Enable Fullscreen Video & Add PIP

Enable fullscreen video
Add PIP

* Enable Fullscreen Video & Add PIP

Enable fullscreen video
Add PIP

* Enable Fullscreen Video & Add PIP

Change from "26" to "Build.VERSION_CODES.O" in onUserLeaveHint()
2020-02-25 20:09:09 -05:00
Home Assistant Bot d344fb5ef6
Lokalise updates (#468) 2020-02-23 20:28:56 -05:00