am e6289de5: am c16a26a2: Merge "Renaming bugreport.txt to bugreportFile.getName()" into mnc-dev

* commit 'e6289de574d6a4ebed776e156949aa3fd73f72c5':
  Renaming bugreport.txt to bugreportFile.getName()
This commit is contained in:
Ian Pedowitz
2015-06-23 02:53:20 +00:00
committed by Android Git Automerger

View File

@@ -214,7 +214,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");