Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Remove old debug options

laurenspriem8d03df5c36a7
diff --git a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
index e97cc5b3de..5490182ec4 100644
--- a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
+++ b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
@@ -67,55 +67,6 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {
logger.info("Building ML Debug section options");
return Column(
children: [
- sectionOptionSpacing,
- MenuItemWidget(
- captionedTextWidget: const CaptionedTextWidget(
- title: "Now notification",
- ),
- pressedColor: getEnteColorScheme(context).fillFaint,
- trailingIcon: Icons.chevron_right_outlined,
- trailingIconIsMuted: true,
- onTap: () async {
- try {
- await NotificationService.instance.showNotification(
- "On this day",
- "Look back on X memories πŸŒ„",
- channelID: "memoryID",
- channelName: "onThisDay",
- payload: "memoryID",
- );
- } catch (e, s) {
- logger.warning('test notification failed ', e, s);
- await showGenericErrorDialog(context: context, error: e);
- }
- },
- ),
- sectionOptionSpacing,
- MenuItemWidget(
- captionedTextWidget: const CaptionedTextWidget(
- title: "Soon notification",
- ),
- pressedColor: getEnteColorScheme(context).fillFaint,
- trailingIcon: Icons.chevron_right_outlined,
- trailingIconIsMuted: true,
- onTap: () async {
- try {
- await NotificationService.instance.scheduleNotification(
- "On this day",
- "Look back on X memories πŸŒ„",
- id: 1,
- channelID: "memoryID",
- channelName: "On this day",
- payload: "memoryID",
- dateTime: DateTime.now().add(const Duration(seconds: 5)),
- );
- showShortToast(context, 'Done');
- } catch (e, s) {
- logger.warning('soon exact notification failed ', e, s);
- await showGenericErrorDialog(context: context, error: e);
- }
- },
- ),
sectionOptionSpacing,
MenuItemWidget(
captionedTextWidget: const CaptionedTextWidget(
@@ -144,7 +95,8 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {
trailingIconIsMuted: true,
onTap: () async {
try {
- await NotificationService.instance.clearAllScheduledNotifications();
+ await NotificationService.instance
+ .clearAllScheduledNotifications();
showShortToast(context, 'Done');
} catch (e) {
await showGenericErrorDialog(context: context, error: e);