mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +00:00
acb40c6133
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;
|
|
}
|
|
}
|