Рабочий первый рабочий коммит

This commit is contained in:
2025-03-31 21:19:55 +03:00
parent 4b7a924752
commit 3b16cf38db
162 changed files with 660 additions and 14087 deletions
+5 -6
View File
@@ -2,8 +2,6 @@ package com.ea.nimble;
import android.content.pm.PackageManager;
import android.os.Environment;
import android.support.v4.media.session.PlaybackStateCompat;
import com.ea.nimble.ILog;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
@@ -17,7 +15,8 @@ import java.util.Iterator;
import java.util.Locale;
import java.util.Map;
import org.apache.http.HttpHeaders;
import org.apache.http.protocol.HTTP;
import kotlin.text.Charsets;
/* loaded from: classes.dex */
public class LogImpl extends Component implements ILog {
@@ -48,7 +47,7 @@ public class LogImpl extends Component implements ILog {
@Override // java.lang.Runnable
public void run() {
if (LogImpl.this.m_filePath == null || LogImpl.this.m_filePath.length() <= LogImpl.this.m_sizeLimit * PlaybackStateCompat.ACTION_PLAY_FROM_MEDIA_ID) {
if (LogImpl.this.m_filePath == null || LogImpl.this.m_filePath.length() <= LogImpl.this.m_sizeLimit) {
return;
}
LogImpl.this.clearLog();
@@ -451,10 +450,10 @@ public class LogImpl extends Component implements ILog {
String property = System.getProperty("line.separator");
if (this.m_logFileStream != null) {
try {
this.m_logFileStream.write((this.m_format.format(new Date()) + " " + str + property).getBytes(Charset.forName(HTTP.UTF_8)));
this.m_logFileStream.write((this.m_format.format(new Date()) + " " + str + property).getBytes());
this.m_logFileStream.flush();
} catch (IOException e) {
android.util.Log.e(Global.NIMBLE_ID, "Error writing to log file: " + e.toString());
android.util.Log.e(Global.NIMBLE_ID, "Error writing to log file: " + e);
}
}
}