Fix: Android reminder toast and boot recovery
- Toast/notify: Keep dialog open until schedule flow finishes so success/error $notify runs while component is mounted (fixes missing toast on Android). Add success/error notify in edit-reminder callback (AccountViewView). - Boot recovery: Split BootReceiver intent-filter so BOOT_COMPLETED and LOCKED_BOOT_COMPLETED use a filter without <data>; use a separate filter with <data scheme="package"/> for MY_PACKAGE_REPLACED/PACKAGE_REPLACED. Boot broadcasts have no Uri and were not matching the previous filter, so daily reminder now reschedules after device restart.
This commit is contained in:
@@ -64,6 +64,8 @@
|
||||
android:exported="false"
|
||||
/>
|
||||
|
||||
<!-- BootReceiver: reschedule daily notification after device restart.
|
||||
Two intent-filters: BOOT_COMPLETED has no Uri, so must not share a filter with <data scheme="package"/> or the boot broadcast never matches. -->
|
||||
<receiver
|
||||
android:name="com.timesafari.dailynotification.BootReceiver"
|
||||
android:enabled="true"
|
||||
@@ -72,6 +74,8 @@
|
||||
<intent-filter android:priority="1000">
|
||||
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
|
||||
<action android:name="android.intent.action.BOOT_COMPLETED" />
|
||||
</intent-filter>
|
||||
<intent-filter android:priority="1000">
|
||||
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
|
||||
<action android:name="android.intent.action.PACKAGE_REPLACED" />
|
||||
<data android:scheme="package" />
|
||||
|
||||
Reference in New Issue
Block a user