Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd82c7d3 authored by Ian Pedowitz's avatar Ian Pedowitz
Browse files

Renaming bugreport.txt to bugreportFile.getName()

Many times to file a bug, its necessary to take several bugreports and
attach them all to the same bug.  With the current implementation, all
extracted files are bugreport.txt which makes it difficult to attach
several bugreports to the same bug, and reference them throughout the
bug uniquely.

Bug: 20447313
Change-Id: I22d2286d06c8dfb82273b5b98c48b21f77941b15
parent 8c6750ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -199,7 +199,7 @@ public class BugreportReceiver extends BroadcastReceiver {
        try (InputStream is = new FileInputStream(bugreportFile);
            ZipOutputStream zos = new ZipOutputStream(
                new BufferedOutputStream(new FileOutputStream(bugreportZippedFile)))) {
            ZipEntry entry = new ZipEntry("bugreport.txt");
            ZipEntry entry = new ZipEntry(bugreportFile.getName());
            zos.putNextEntry(entry);
            int totalBytes = Streams.copy(is, zos);
            Log.v(TAG, "size of original bugreport: " + totalBytes + " bytes");