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

Commit 1efa7cbc authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Cancel dialog before stopping service."

parents 35f46b89 034bcf42
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -556,6 +556,7 @@ public class BugreportProgressService extends Service {
    private void cancel(int id) {
        MetricsLogger.action(this, MetricsEvent.ACTION_BUGREPORT_NOTIFICATION_ACTION_CANCEL);
        Log.v(TAG, "cancel: ID=" + id);
        mInfoDialog.cancel();
        final BugreportInfo info = getInfo(id);
        if (info != null && !info.finished) {
            Log.i(TAG, "Cancelling bugreport service (ID=" + id + ") on user's request");
@@ -563,7 +564,6 @@ public class BugreportProgressService extends Service {
            deleteScreenshots(info);
        }
        stopProgress(id);
        mInfoDialog.cancel();
    }

    /**