Remove unnecessary cancel().
JobScheduler.schedule() will cancel any existing job with the same ID, so calling getPendingJob() and then cancel() before schedule() is unnecessary. Bug: 238764917 Test: atest ReviewNotificationPermissionsJobServiceTest Change-Id: I7af83edf9f8971a82dd8ef32d9480a803707facc
Loading
Please register or sign in to comment