commit | c519781cf1ea3a15b71b726c3b97420de499b067 | [log] [tgz] |
---|---|---|
author | Michael W <baddaemon87@gmail.com> | Tue Feb 14 21:40:34 2023 +0100 |
committer | Jis G Jacob <studiokeys@blissroms.org> | Sun Apr 16 21:14:48 2023 +0530 |
tree | ac532100856d58a1bed29e1f80d3ca545dd19f18 | |
parent | ebfb6e40467cd7f476d5ecb144151e01eafb3a7c [diff] |
DeskClock: Fix timer notification * Currently, pressing the timer notification does nothing (but add some logs...) * Since Android 12, notification trampolines are restricted: https://developer.android.com/about/versions/12/behavior-changes-12#notification-trampolines * We need to start an activity directly, therefore move the relevant code to DeskClock.java directly * Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/5558 Test: - Start a timer (with enough time for the rest of the test) - Minimize app - Wait for notification and tap it -> DeskClock reopens at timer tab - Close app - Wait for notification and tap it -> DeskClock reopens at timer tab Change-Id: I18c742b0b6de840776931a4fb42c2420c4c9fae1