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
This commit is contained in:
Michael W
2020-05-04 19:29:15 +02:00
committed by Bruno Martins
parent 082c3c6b86
commit eec59ae1b6

View File

@@ -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;
}