Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
change onTaskRemoved to onDestory method function in ScreencastService
Browse files Browse the repository at this point in the history
  • Loading branch information
karkakol committed Apr 23, 2024
1 parent 0d5b4d8 commit 3cdf75f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ internal class ScreencastService : Service() {
startForeground(notificationId ?: DEFAULT_NOTIFICATION_ID, properNotification)
}

override fun onTaskRemoved(rootIntent: Intent?) {
override fun onDestroy() {
stopForeground(true)
stopSelf()
}
Expand Down

0 comments on commit 3cdf75f

Please sign in to comment.