aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael W <baddaemon87@gmail.com>2020-05-04 19:29:15 +0200
committerBruno Martins <bgcngm@gmail.com>2020-05-05 00:27:35 +0200
commiteec59ae1b6c68a955e29fae11eb50afacacbe5ed (patch)
treedbaf016dacc3b38fbf082da0b565b4bd4f34b6f3
parent082c3c6b8668ab240e3f2777bd2c953abe0263fb (diff)
downloadlineage-sdk-eec59ae1b6c68a955e29fae11eb50afacacbe5ed.tar.gz
lineage-sdk-eec59ae1b6c68a955e29fae11eb50afacacbe5ed.tar.bz2
lineage-sdk-eec59ae1b6c68a955e29fae11eb50afacacbe5ed.zip
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
-rw-r--r--lineage/lib/main/java/org/lineageos/platform/internal/TrustInterfaceService.java4
1 files 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;
}