mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-26 12:44:38 +00:00
Update device notification prompt.
This commit is contained in:
committed by
Greyson Parrelli
parent
bd3ab2cc38
commit
6641cc4806
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user