Compare commits
3 commits
ae4ce002d6
...
dcb1c69b1c
Author | SHA1 | Date | |
---|---|---|---|
dcb1c69b1c | |||
6fa2c9cf2f | |||
f9109d6b3b |
3 changed files with 5 additions and 3 deletions
|
@ -91,8 +91,6 @@ class SafetyPlugin @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun isAdvancedFilteringEnabled(value: Constraint<Boolean>): Constraint<Boolean> {
|
override fun isAdvancedFilteringEnabled(value: Constraint<Boolean>): Constraint<Boolean> {
|
||||||
val bgSource = activePlugin.activeBgSource
|
|
||||||
if (!bgSource.advancedFilteringSupported()) value.set(false, rh.gs(R.string.smbalwaysdisabled), this)
|
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ class SignatureVerifierPlugin @Inject constructor(
|
||||||
val fingerprint = digest.digest(signature.toByteArray())
|
val fingerprint = digest.digest(signature.toByteArray())
|
||||||
for (cert in revokedCerts!!) {
|
for (cert in revokedCerts!!) {
|
||||||
if (Arrays.equals(cert, fingerprint)) {
|
if (Arrays.equals(cert, fingerprint)) {
|
||||||
return true
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,10 @@ class VersionCheckerUtilsImpl @Inject constructor(
|
||||||
private fun isConnected(): Boolean = receiverStatusStore.isConnected
|
private fun isConnected(): Boolean = receiverStatusStore.isConnected
|
||||||
|
|
||||||
override fun triggerCheckVersion() {
|
override fun triggerCheckVersion() {
|
||||||
|
if (true) {
|
||||||
|
onSameVersionDetected()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (!sp.contains(R.string.key_last_successful_version_check_timestamp)) {
|
if (!sp.contains(R.string.key_last_successful_version_check_timestamp)) {
|
||||||
// On a new installation, set it as 30 days old in order to warn that there is a new version.
|
// On a new installation, set it as 30 days old in order to warn that there is a new version.
|
||||||
|
|
Loading…
Reference in a new issue