commit | 2aa35a0021bd9805f4f5196a1723b72034e78fff | [log] [tgz] |
---|---|---|
author | Michael W <baddaemon87@gmail.com> | Wed Feb 22 19:48:31 2023 +0100 |
committer | Jis G Jacob <studiokeys@blissroms.org> | Sun Apr 16 21:15:38 2023 +0530 |
tree | 9a2ffb4a90244e02547dae920a088e8f97ca0e99 | |
parent | 75b6b2838c1d468a73ec1232f509dc554cd3964a [diff] |
DeskClock: Fix stopwatch notification * Currently, pressing the stopwatch 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/5586 Test: - Start the stopwatch - Minimize app - Wait for notification and tap it -> DeskClock reopens at stopwatch tab - Close app - Wait for notification and tap it -> DeskClock reopens at stopwatch tab Change-Id: I4dc23e1f134b9c69f5df361d4403b946e84131c4