auto-download notification is "Tap to install Unknown", wrong tap target, and notification is not withdrawn
environment
CM 12.1, Nexus 5, fdroid 0.100.1.
reproduction recipe and description
Enable "automatically download updates" and "update notifications". Wait until an app is updated, and you will see a notifcation to install a downloaded app. That part works fine and seems reliable.
The notification says "Tap to install Unknown \n Download completed, tap to install".
Tapping on the notification takes me to F-Droid, but shows the Available tab.
I then go to the Updates tab (which shows 1), and see an app (this is entirely consistent with multiple apps). I then select the app, click upgrade, and then install. I then click back and see that the updates tab says 0. (The updated app is still listed, though.)
The notification is still present. I tap it again, and then it disappears.
desired behavior
The notification should say "Tap to install appname" in the first line, and just "Download completed" in the second (don't show tap to install twice).
When tapping, the user should be taken to either the updates page, or the update screen for the app (probably), or the permissions/install page.
The notification should be withdrawn when the above happens (probably), when the installation is attempted by clicking upgrade, or when install or cancel is pushed.
After an upgrade happens, the app page should no longer say "upgrade", even if the upgrade has not finished. Then, the app should be removed from the upgrade tab when it succeeds.
None of this is really troubling, but it will cause confusion for people.