Fix exporting full logs
This commit is contained in:
parent
a9df3e756e
commit
fb455b982e
@ -99,10 +99,6 @@ public class BugReportActivity extends AppCompatActivity {
|
|||||||
private void exportLog() {
|
private void exportLog() {
|
||||||
try {
|
try {
|
||||||
File filename = new File(UserPreferences.getDataFolder(null), "full-logs.txt");
|
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();
|
String cmd = "logcat -d -f " + filename.getAbsolutePath();
|
||||||
Runtime.getRuntime().exec(cmd);
|
Runtime.getRuntime().exec(cmd);
|
||||||
//share file
|
//share file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user