-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LockScreen Changes #1153
LockScreen Changes #1153
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1153 +/- ##
=============================================
- Coverage 46.8% 44.56% -2.24%
- Complexity 4070 4439 +369
=============================================
Files 459 470 +11
Lines 22458 26562 +4104
Branches 2553 3611 +1058
=============================================
+ Hits 10512 11838 +1326
- Misses 11318 13970 +2652
- Partials 628 754 +126
Continue to review full report at Codecov.
|
* | ||
* <li> displayMode - Describes when the lock screen will be displayed. Defaults to `DISPLAY_MODE_REQUIRED_ONLY`.</li> | ||
* | ||
* <li> enableDismissGesture - If YES, then the lock screen can be dismissed with a downward swipe on compatible head units. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we replace YES with true in the javadoc in this file?
@@ -279,7 +283,7 @@ private void launchLockScreenActivity(){ | |||
context.get().registerReceiver(mLockscreenDismissedReceiver, new IntentFilter(SDLLockScreenActivity.KEY_LOCKSCREEN_DISMISSED)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldnt that potentially register the receiver multiple times?
@@ -99,6 +97,14 @@ public LockScreenManager(LockScreenConfig lockScreenConfig, Context context, ISd | |||
customView = lockScreenConfig.getCustomView(); | |||
lockScreenEnabled = lockScreenConfig.isEnabled(); | |||
deviceLogoEnabled = lockScreenConfig.isDeviceLogoEnabled(); | |||
displayMode = lockScreenConfig.getDisplayMode(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the display mode is set to DISPLAY_MODE_ALWAYS
, the lock screen cannot be dismissed even if enableDismissGesture=true
. not sure if that is intentional or a bug.
Fixes #934
This PR is ready for review.
Risk
This PR makes minor API changes.
Testing Plan
Smoke tests and Unit tests
Summary
Add in a new IntDef Enum for lock screen DisplayModes, add in the ability to not allow lock screen dismissal
CLA