Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
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
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
2edb4057
Commit
2edb4057
authored
11 months ago
by
Richard MacGregor
Committed by
Android (Google) Code Review
11 months ago
Browse files
Options
Downloads
Plain Diff
Merge "Update Notification#Visibility javadoc" into main
parents
14ec69db
71b7e434
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
core/java/android/app/Notification.java
+10
-6
10 additions, 6 deletions
core/java/android/app/Notification.java
with
10 additions
and
6 deletions
core/java/android/app/Notification.java
+
10
−
6
View file @
2edb4057
...
...
@@ -897,15 +897,16 @@ public class Notification implements Parcelable
/**
* Sphere of visibility of this notification, which affects how and when the SystemUI reveals
* the notification's presence and contents in untrusted situations (namely, on the secure
* lockscreen).
* lockscreen
and during screen sharing
).
*
* The default level, {@link #VISIBILITY_PRIVATE}, behaves exactly as notifications have always
* done on Android: The notification's {@link #icon} and {@link #tickerText} (if available) are
* shown in all situations, but the contents are only available if the device is unlocked for
* the appropriate user.
* the appropriate user
and there is no active screen sharing session
.
*
* A more permissive policy can be expressed by {@link #VISIBILITY_PUBLIC}; such a notification
* can be read even in an "insecure" context (that is, above a secure lockscreen).
* can be read even in an "insecure" context (that is, above a secure lockscreen or while
* screen sharing with a remote viewer).
* To modify the public version of this notification—for example, to redact some portions—see
* {@link Builder#setPublicVersion(Notification)}.
*
...
...
@@ -924,7 +925,8 @@ public class Notification implements Parcelable
public @interface Visibility {}
/**
* Notification visibility: Show this notification in its entirety on all lockscreens.
* Notification visibility: Show this notification in its entirety on all lockscreens and while
* screen sharing.
*
* {@see #visibility}
*/
...
...
@@ -932,14 +934,16 @@ public class Notification implements Parcelable
/**
* Notification visibility: Show this notification on all lockscreens, but conceal sensitive or
* private information on secure lockscreens.
* private information on secure lockscreens. Conceal sensitive or private information while
* screen sharing.
*
* {@see #visibility}
*/
public static final int VISIBILITY_PRIVATE = 0;
/**
* Notification visibility: Do not reveal any part of this notification on a secure lockscreen.
* Notification visibility: Do not reveal any part of this notification on a secure lockscreen
* or while screen sharing.
*
* {@see #visibility}
*/
...
...
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