mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Add the ability to opt out of PINs.
This commit is contained in:
@@ -44,6 +44,10 @@ class PinsForAllSchedule implements MegaphoneSchedule {
|
||||
}
|
||||
|
||||
private static boolean isEnabled() {
|
||||
if (SignalStore.kbsValues().hasOptedOut()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (SignalStore.kbsValues().hasPin()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,10 @@ final class SignalPinReminderSchedule implements MegaphoneSchedule {
|
||||
|
||||
@Override
|
||||
public boolean shouldDisplay(int seenCount, long lastSeen, long firstVisible, long currentTime) {
|
||||
if (SignalStore.kbsValues().hasOptedOut()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!SignalStore.kbsValues().hasPin()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user