mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Add UI for prompting about crashes.
This commit is contained in:
committed by
Alex Hart
parent
0a6c3baf24
commit
f959543c19
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user