commit | 1b1d614e63950a2acff33f19615889f81b967542 | [log] [tgz] |
---|---|---|
author | Abhijeet Kaur <abkaur@google.com> | Mon Jul 29 09:50:55 2019 +0100 |
committer | Abhijeet Kaur <abkaur@google.com> | Mon Aug 05 15:24:16 2019 +0100 |
tree | e054fd2a58e4f11075e4123c86bc13302b2a3a91 | |
parent | 7bdc19bacb177ba5fbfd6bb5db6fe4543fe2f220 [diff] |
Add logic to handle screenshot file creation failure Delete the bugreport file to free the space before returning. Delete unnecessary if blocks as the File constructor would never return null Bug:123617758 Test: Force code to execute the if (screenshotFd == null) block. Bugreport file gets deleted successfully Change-Id: Ib88278a8a56799ef562b8b06e5e530a8e31e85d5