Add UI for prompting about crashes.

This commit is contained in:
Greyson Parrelli
2023-09-06 15:05:23 -04:00
committed by Alex Hart
parent 0a6c3baf24
commit f959543c19
23 changed files with 1089 additions and 182 deletions

View File

@@ -22,6 +22,7 @@ public class UiHints extends SignalStoreValues {
private static final String LAST_NOTIFICATION_LOGS_PROMPT_TIME = "uihints.last_notification_logs_prompt";
private static final String DISMISSED_BATTERY_SAVER_PROMPT = "uihints.declined_battery_saver_prompt";
private static final String LAST_BATTERY_SAVER_PROMPT = "uihints.last_battery_saver_prompt";
private static final String LAST_CRASH_PROMPT = "uihints.last_crash_prompt";
UiHints(@NonNull KeyValueStore store) {
super(store);
@@ -154,4 +155,12 @@ public class UiHints extends SignalStoreValues {
public void setLastBatterySaverPrompt(long time) {
putLong(LAST_BATTERY_SAVER_PROMPT, time);
}
public void setLastCrashPrompt(long time) {
putLong(LAST_CRASH_PROMPT, time);
}
public long getLastCrashPrompt() {
return getLong(LAST_CRASH_PROMPT, 0);
}
}