mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 11:42:23 +00:00
Use Signal's job framework for background polling
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user