Added logging

pull/194/head
M66B 4 years ago
parent e71cf9ee4d
commit 7140a2deec

@ -225,6 +225,10 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
private int load_device(State state) {
DB db = DB.getInstance(context);
Log.i("Boundary device" +
" index=" + state.index +
" matches=" + (state.matches == null ? null : state.matches.size()));
int found = 0;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
@ -316,12 +320,16 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
if (match.matched != null && match.matched) {
found++;
Log.i("Boundary matched=" + match.id);
db.message().setMessageFound(match.id);
}
}
}
Log.i("Boundary device done memory=" + Log.getFreeMemMb());
Log.i("Boundary device done" +
" found=" + found + "/" + pageSize +
" destroyed=" + state.destroyed +
" memory=" + Log.getFreeMemMb());
return found;
}

@ -279,6 +279,18 @@
app:layout_constraintTop_toBottomOf="@id/swWatchdog"
app:switchPadding="12dp" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/swUpdatesWeekly"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:checked="true"
android:text="@string/title_advanced_updates"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/swUpdates"
app:switchPadding="12dp" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/swExperiments"
android:layout_width="0dp"
@ -287,7 +299,7 @@
android:text="@string/title_advanced_experiments"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/swUpdates"
app:layout_constraintTop_toBottomOf="@id/swUpdatesWeekly"
app:switchPadding="12dp" />
<eu.faircode.email.FixedTextView

Loading…
Cancel
Save