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

Commit 5f49375c authored by Abhijeet Kaur's avatar Abhijeet Kaur
Browse files

Initialize progress and lastProgress AtomicIntegers

This is essential for bugreports that do not send progress updates.

Bug: 152343458
Test: Take and share full bugreport
Change-Id: Id634afd82a92c02d1cf96ffd719fff8670fb8709
parent 09b1ee60
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1803,13 +1803,13 @@ public class BugreportProgressService extends Service {
         * Current value of progress (in percentage) of the bugreport generation as
         * displayed by the UI.
         */
        AtomicInteger progress;
        AtomicInteger progress = new AtomicInteger(0);

        /**
         * Last value of progress (in percentage) of the bugreport generation for which
         * system notification was updated.
         */
        AtomicInteger lastProgress;
        AtomicInteger lastProgress = new AtomicInteger(0);

        /**
         * Time of the last progress update.