Merge pull request #5300 from ByteHamster/fix-logs-export

Fix exporting full logs
This commit is contained in:
ByteHamster 2021-07-25 18:15:36 +02:00 committed by GitHub
commit 22214df31e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -99,10 +99,6 @@ public class BugReportActivity extends AppCompatActivity {
private void exportLog() {
try {
File filename = new File(UserPreferences.getDataFolder(null), "full-logs.txt");
boolean success = filename.createNewFile();
if (!success) {
throw new IOException("Unable to create output file");
}
String cmd = "logcat -d -f " + filename.getAbsolutePath();
Runtime.getRuntime().exec(cmd);
//share file