Adapt action numbering in Android to work like in KNotifications
ClosedPublic

Authored by cacahueto on Feb 29 2020, 1:41 PM.

Details

Summary

KNotifications assigns the ID 0 to the default action on a notification (the
one when the notification itself is selected). Additional actions (buttons on
the notification) are counted starting with 1.

In the Android backend however, the default action has ID 0 and the additional
actions are counted starting with 0 as well. This has been fixed to work as
described above.

Diff Detail

Repository
R289 KNotifications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
cacahueto created this revision.Feb 29 2020, 1:41 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptFeb 29 2020, 1:41 PM
cacahueto requested review of this revision.Feb 29 2020, 1:41 PM
nicolasfella accepted this revision.Mar 1 2020, 3:45 PM
This revision is now accepted and ready to land.Mar 1 2020, 3:45 PM
This revision was automatically updated to reflect the committed changes.