Skip to content

Conversation

@jonahwh
Copy link
Contributor

@jonahwh jonahwh commented Sep 13, 2021

TaskerPluginRunerAction is always calling IntentServiceParallel.startForegroundIfNeeded which calls TaskerPluginRunner.startForegroundIfNeeded(this), which will always use the default value of NotificationProperties.

This fix adds TaskerPluginRunner.startForegroundIfNeeded(intentServiceParallel: IntentServiceParallel), which is called from TaskerPluginRunnerAction to properly use the configured NotificationProperties.

Before: Notification icon is not displayed properly even though it is configured
Screen Shot 2021-09-12 at 5 41 21 PM

After: Notification icon is displayed properly:
Screen Shot 2021-09-12 at 5 40 59 PM

}

@TargetApi(Build.VERSION_CODES.O)
fun startForegroundIfNeeded(intentServiceParallel: IntentServiceParallel) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not use an extension function here as it would clash with IntentServiceParallel.startForegroundIfNeeded

@joaomgcd joaomgcd merged commit 5036851 into joaomgcd:master Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants