Use Signal's job framework for background polling

This commit is contained in:
Niels Andriesse
2019-07-22 10:50:35 +10:00
parent 19cdf8068d
commit d6cf9b573e
6 changed files with 70 additions and 31 deletions

View File

@@ -1126,4 +1126,12 @@ public class TextSecurePreferences {
return defaultValues;
}
}
public static long getBackgroundPollTime(Context context) {
return getLongPreference(context, "background_poll_time", 0L);
}
public static void setBackgroundPollTime(Context context, long backgroundPollTime) {
setLongPreference(context, "background_poll_time", backgroundPollTime);
}
}