feat: add travel and room alerts, live lesson notifications, and launcher shortcuts
- Implemented travel alerts for notifying about classes in another town the evening before. - Added room alerts for notifying about room changes on the morning of the class. - Introduced live lesson notifications to provide ongoing updates during classes. - Created launcher shortcuts for quick access to today's schedule, weekly overview, search functionality, and adding new tasks. - Updated settings to manage new notification preferences and integrated them into the user interface. - Enhanced notification channels for better organization and user experience.
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||
<!-- Optional: the student can allow exact reminder times in system settings. -->
|
||||
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
|
||||
<!-- The lesson under way as a Live Update on Android 16 (a promoted ongoing notification). -->
|
||||
<uses-permission android:name="android.permission.POST_PROMOTED_NOTIFICATIONS" />
|
||||
|
||||
<application
|
||||
android:name=".ScheduleApp"
|
||||
@@ -20,11 +22,16 @@
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
android:launchMode="singleTop"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
<!-- Long press on the icon: today, the week, room search, a new task. -->
|
||||
<meta-data
|
||||
android:name="android.app.shortcuts"
|
||||
android:resource="@xml/shortcuts" />
|
||||
</activity>
|
||||
|
||||
<receiver
|
||||
@@ -66,6 +73,14 @@
|
||||
android:name=".notify.ReminderReceiver"
|
||||
android:exported="false" />
|
||||
|
||||
<receiver
|
||||
android:name=".notify.DayAlertReceiver"
|
||||
android:exported="false" />
|
||||
|
||||
<receiver
|
||||
android:name=".notify.LiveLessonReceiver"
|
||||
android:exported="false" />
|
||||
|
||||
<receiver
|
||||
android:name=".notify.BootReceiver"
|
||||
android:exported="true">
|
||||
|
||||
Reference in New Issue
Block a user