|
|
@ -128,9 +128,10 @@ public class FragmentLogs extends FragmentBase {
|
|
|
|
super.onActivityCreated(savedInstanceState);
|
|
|
|
super.onActivityCreated(savedInstanceState);
|
|
|
|
|
|
|
|
|
|
|
|
long from = new Date().getTime() - 24 * 3600 * 1000L;
|
|
|
|
long from = new Date().getTime() - 24 * 3600 * 1000L;
|
|
|
|
|
|
|
|
int limit = (BuildConfig.DEBUG ? 10000 : 2000);
|
|
|
|
|
|
|
|
|
|
|
|
DB db = DB.getInstance(getContext());
|
|
|
|
DB db = DB.getInstance(getContext());
|
|
|
|
db.log().liveLogs(from, null).observe(getViewLifecycleOwner(), new Observer<List<EntityLog>>() {
|
|
|
|
db.log().liveLogs(from, limit, null).observe(getViewLifecycleOwner(), new Observer<List<EntityLog>>() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onChanged(List<EntityLog> logs) {
|
|
|
|
public void onChanged(List<EntityLog> logs) {
|
|
|
|
if (logs == null)
|
|
|
|
if (logs == null)
|
|
|
|