From eec59ae1b6c68a955e29fae11eb50afacacbe5ed Mon Sep 17 00:00:00 2001 From: Michael W Date: Mon, 4 May 2020 19:29:15 +0200 Subject: Trust: Actually cancel notification if the setting is disabled * When onboarding, the notifications show up properly * Once you disable any of the notifications, none of them vanishes due to the logic being inverted: We want to cancel the notification if the warning is not allowed! Change-Id: Id3f3b3c9e184cc11d2909dd1e0f7859e32588728 --- .../java/org/lineageos/platform/internal/TrustInterfaceService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java b/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java index b1ea5572..96f9e452 100644 --- a/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java +++ b/lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018-2019 The LineageOS Project + * Copyright (C) 2018-2020 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -143,7 +143,7 @@ public class TrustInterfaceService extends LineageSystemService { } private boolean removeNotificationForFeatureInternal(int feature) { - if (!isWarningAllowed(feature)) { + if (isWarningAllowed(feature)) { return false; } -- cgit v1.2.3