Not asking for the password when dragging down and bypass

Instead we'll just keep them in there looking like locked
notifications.

Fixes: 138225058
Test: add notifications, enable dynamic privacy, drag down
Change-Id: Ica49035ba3fe655c145f81be962817ddd294c48d
This commit is contained in:
Selim Cinek
2019-07-23 18:44:07 -07:00
parent 2738aa3f79
commit abcc201afb
4 changed files with 13 additions and 3 deletions

View File

@@ -5437,10 +5437,11 @@ public class Notification implements Parcelable
/**
* Construct a RemoteViews for the display in public contexts like on the lockscreen.
*
* @param isLowPriority is this notification low priority
* @hide
*/
@UnsupportedAppUsage
public RemoteViews makePublicContentView() {
public RemoteViews makePublicContentView(boolean isLowPriority) {
if (mN.publicVersion != null) {
final Builder builder = recoverBuilder(mContext, mN.publicVersion);
return builder.createContentView();
@@ -5467,7 +5468,11 @@ public class Notification implements Parcelable
}
mN.extras = publicExtras;
RemoteViews view;
view = makeNotificationHeader();
StandardTemplateParams params = mParams.reset().fillTextsFrom(this);
if (isLowPriority) {
params.forceDefaultColor();
}
view = makeNotificationHeader(params);
view.setBoolean(R.id.notification_header, "setExpandOnlyOnButton", true);
mN.extras = savedBundle;
mN.mLargeIcon = largeIcon;