diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-08-22 22:35:54 +0000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-08-22 22:35:54 +0000 |
| commit | 796b6dffd920ec9228430dcca1a1f4ec855ebfc7 (patch) | |
| tree | 758e451d4f3ec04667709977dba654913d1ccffb /app/src/main/AndroidManifest.xml | |
| parent | 55cdfc8fab6ddd1052593f8fd53dbb5bf730cc63 (diff) | |
Replace background auto-refresh with fetch-on-launch + explicit button
Periodic hourly WorkManager fetches and the 5am exact-alarm morning fetch
both refreshed without any visible trigger, which surprised the user more
than it helped. Refreshing now only ever happens on a fresh app launch
(MainActivity.onCreate) or an explicit tap of the new refresh button on the
Unread/Older screens' top bar (wired to the fetch-status state that was
already being computed there but never rendered). Drops MorningFetchReceiver
entirely along with its exact-alarm permission and boot receiver.
Diffstat (limited to 'app/src/main/AndroidManifest.xml')
| -rw-r--r-- | app/src/main/AndroidManifest.xml | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 325a2cf..a91bd3a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -3,13 +3,6 @@ <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> - <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> - <!-- For the 5am morning-fetch alarm (MorningFetchReceiver): lets it wake the device - at an exact time even under Doze, without the much broader "ignore battery - optimizations" exemption (user explicitly wants battery optimization left on - otherwise). Android 12+ requires the user grant this once via Settings; MainActivity - prompts for it if not already granted. --> - <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" /> <application android:label="@string/app_name" @@ -47,18 +40,5 @@ </intent-filter> </activity> - <!-- - Fires the 5am morning fetch (exact alarm, set up by MorningFetchReceiver.scheduleNext, - called from MainActivity). Also re-arms that alarm after a reboot: an exact alarm - set via AlarmManager does NOT survive a device restart on its own. - --> - <receiver - android:name=".work.MorningFetchReceiver" - android:exported="false"> - <intent-filter> - <action android:name="android.intent.action.BOOT_COMPLETED" /> - </intent-filter> - </receiver> - </application> </manifest> |
