From 025836acb66b24a149c761a8d3eb4edbc83ac4cd Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 9 Nov 2026 15:13:08 -0700 Subject: [PATCH] Agent fixed the current set of issues, now the app at least runs (and is actually staying alive in the background successfully!) but the countdown is visually messed up on SDK24 (hours field is missing) and SDK36 (fields do not count down at all even though the app is making the noise), plus the Pause button no longer pauses and causes the right button to be disabled indefinitely after using it. --- .../com/hyperling/apps/infinitetimer/MainActivity.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/hyperling/apps/infinitetimer/MainActivity.java b/app/src/main/java/com/hyperling/apps/infinitetimer/MainActivity.java index d1ccf39..bfe86f7 100755 --- a/app/src/main/java/com/hyperling/apps/infinitetimer/MainActivity.java +++ b/app/src/main/java/com/hyperling/apps/infinitetimer/MainActivity.java @@ -704,8 +704,12 @@ public class MainActivity extends AppCompatActivity { syncVolume(); // Register receiver to get live updates from ForegroundService while app is visible - // RECEIVER_NOT_EXPORTED (0x00010000) is required on Android 13+ for local broadcasts - registerReceiver(timerUpdateReceiver, new IntentFilter(TimerForegroundService.class.getName() + ".UPDATE"), 0x00010000); + IntentFilter filter = new IntentFilter(TimerForegroundService.class.getName() + ".UPDATE"); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) { + registerReceiver(timerUpdateReceiver, filter, Context.RECEIVER_NOT_EXPORTED); + } else { + registerReceiver(timerUpdateReceiver, filter); + } if (DEBUG) Log.d(tag, "Finished"); }