Merge "Call stopSelfWhenDone() *after* canceling the notification." into nyc-dev

This commit is contained in:
Felipe Leme
2016-03-08 21:17:42 +00:00
committed by Android (Google) Code Review

View File

@@ -505,9 +505,9 @@ public class BugreportProgressService extends Service {
Log.d(TAG, "Removing ID " + id);
mProcesses.remove(id);
}
stopSelfWhenDone();
Log.v(TAG, "stopProgress(" + id + "): cancel notification");
NotificationManager.from(mContext).cancel(TAG, id);
stopSelfWhenDone();
}
/**