Add Looper.prepare() to doInBackground()
Fix runtime error that was being thrown as Looper.prepare() was not called in the async function doInBackground. Bug: 124612105 Test: Was not able to reproduce the bug (that is make code execution flow through the catch block). * Reproduced by throwing IOException in the try block so that code flows to the catch block. * Build and flash. * Take interactive bugreport and change title and name of the bugreport from the progress bar. Change-Id: I6a5ea594d95462e1c66bd28eb81dd5f4daa6f35e
This commit is contained in:
@@ -1095,6 +1095,7 @@ public class BugreportProgressService extends Service {
|
|||||||
new AsyncTask<Void, Void, Void>() {
|
new AsyncTask<Void, Void, Void>() {
|
||||||
@Override
|
@Override
|
||||||
protected Void doInBackground(Void... params) {
|
protected Void doInBackground(Void... params) {
|
||||||
|
Looper.prepare();
|
||||||
zipBugreport(info);
|
zipBugreport(info);
|
||||||
sendBugreportNotification(info, takingScreenshot);
|
sendBugreportNotification(info, takingScreenshot);
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user