Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dhina17
platform_frameworks_base
Commits
6e51daa4
Commit
6e51daa4
authored
1 year ago
by
Ale Nijamkin
Committed by
Gerrit Code Review
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge "Hide camera affordance when secure Camera is disabled" into main
parents
0eaa4339
65a4d059
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/CameraQuickAffordanceConfig.kt
+15
-10
15 additions, 10 deletions
...guard/data/quickaffordance/CameraQuickAffordanceConfig.kt
with
15 additions
and
10 deletions
packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/CameraQuickAffordanceConfig.kt
+
15
−
10
View file @
6e51daa4
...
...
@@ -34,7 +34,7 @@ import dagger.Lazy
import
javax.inject.Inject
import
kotlinx.coroutines.CoroutineDispatcher
import
kotlinx.coroutines.flow.Flow
import
kotlinx.coroutines.flow.flow
Of
import
kotlinx.coroutines.flow.flow
import
kotlinx.coroutines.withContext
@SysUISingleton
...
...
@@ -59,16 +59,21 @@ constructor(
get
()
=
R
.
drawable
.
ic_camera
override
val
lockScreenState
:
Flow
<
KeyguardQuickAffordanceConfig
.
LockScreenState
>
get
()
=
flowOf
(
KeyguardQuickAffordanceConfig
.
LockScreenState
.
Visible
(
icon
=
Icon
.
Resource
(
R
.
drawable
.
ic_camera
,
ContentDescription
.
Resource
(
R
.
string
.
accessibility_camera_button
)
)
)
get
()
=
flow
{
emit
(
if
(
isLaunchable
())
{
KeyguardQuickAffordanceConfig
.
LockScreenState
.
Visible
(
icon
=
Icon
.
Resource
(
R
.
drawable
.
ic_camera
,
ContentDescription
.
Resource
(
R
.
string
.
accessibility_camera_button
)
)
)
}
else
{
KeyguardQuickAffordanceConfig
.
LockScreenState
.
Hidden
}
)
}
override
suspend
fun
getPickerScreenState
():
KeyguardQuickAffordanceConfig
.
PickerScreenState
{
return
if
(
isLaunchable
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment