mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-26 00:27:20 +00:00

Added a new logger that persists logs for a longer duration to the user's cache directory. Logs are encrypted. The new logs are sent in addition to the user's logcat output.
14 lines
260 B
Java
14 lines
260 B
Java
package org.thoughtcrime.securesms.logging;
|
|
|
|
public class GrowingBuffer {
|
|
|
|
private byte[] buffer;
|
|
|
|
public byte[] get(int minLength) {
|
|
if (buffer == null || buffer.length < minLength) {
|
|
buffer = new byte[minLength];
|
|
}
|
|
return buffer;
|
|
}
|
|
}
|