[Task Manager] Clear smart launcher data when launcher URL changes
ClosedPublic

Authored by broulik on Jan 12 2018, 9:38 AM.

Details

Summary

Task Manager occasionally re-uses task manager delegates, so the launcher URL can change during the lifetime of the object.
I already take care of this by resetting the storageId but I did not clear any badge or progress we might still have, leading to wrong or random apps showing a badge that won't go away.

Test Plan

I made an app that listens for Unity service to be registered and send its badge info once it's there. Without this patch I would end up with two apps showing the badge, with this patch it's only the right one

Diff Detail

Repository
R119 Plasma Desktop
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Jan 12 2018, 9:38 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJan 12 2018, 9:38 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Jan 12 2018, 9:38 AM
hein accepted this revision.Jan 14 2018, 7:34 AM
This revision is now accepted and ready to land.Jan 14 2018, 7:34 AM
This revision was automatically updated to reflect the committed changes.