Update device notification prompt.
This commit is contained in:
parent
bd3ab2cc38
commit
6641cc4806
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue