Update device notification prompt.

This commit is contained in:
mtang-signal 2024-07-18 17:51:59 -07:00 committed by Greyson Parrelli
parent bd3ab2cc38
commit 6641cc4806
2 changed files with 2 additions and 2 deletions

View file

@ -198,6 +198,6 @@ public class UiHintValues extends SignalStoreValues {
* Sets the version number of the support article that users see if they have device-specific notifications issues
*/
public void setLastSupportVersionSeen(int version) {
putLong(LAST_SUPPORT_VERSION_SEEN, version);
putInteger(LAST_SUPPORT_VERSION_SEEN, version);
}
}

View file

@ -53,7 +53,7 @@ class VitalsViewModel(private val context: Application) : AndroidViewModel(conte
}
}
DeviceSpecificNotificationConfig.ShowCondition.HAS_BATTERY_OPTIMIZATION_ON -> {
if (SlowNotificationHeuristics.isBatteryOptimizationsOn()) {
if (SlowNotificationHeuristics.shouldShowDialog() && SlowNotificationHeuristics.isBatteryOptimizationsOn()) {
state = State.PROMPT_SPECIFIC_BATTERY_SAVER_DIALOG
}
}