remove hard-coded daily android notification

This commit is contained in:
2026-06-19 23:43:40 -06:00
parent fe97dff752
commit 463db39a6b

View File

@@ -9,7 +9,6 @@ import org.timesafari.dailynotification.FetchContext;
import org.timesafari.dailynotification.NativeNotificationContentFetcher; import org.timesafari.dailynotification.NativeNotificationContentFetcher;
import org.timesafari.dailynotification.NotificationContent; import org.timesafari.dailynotification.NotificationContent;
import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
@@ -47,22 +46,11 @@ public class TimeSafariNativeFetcher implements NativeNotificationContentFetcher
// This should query the TimeSafari API for notification content // This should query the TimeSafari API for notification content
// using the configured apiBaseUrl, activeDid, and jwtToken // using the configured apiBaseUrl, activeDid, and jwtToken
// For now, return a placeholder notification // Not implemented yet: return no content rather than fabricating a
long scheduledTime = fetchContext.scheduledTime != null // placeholder notification (previously hardcoded "Check your starred
? fetchContext.scheduledTime // projects for updates!", which showed on every app startup).
: System.currentTimeMillis() + 60000; // 1 minute from now Log.d(TAG, "Content fetching not yet implemented; returning no notifications");
return Collections.<NotificationContent>emptyList();
NotificationContent content = new NotificationContent(
"TimeSafari Update",
"Check your starred projects for updates!",
scheduledTime
);
List<NotificationContent> results = new ArrayList<>();
results.add(content);
Log.d(TAG, "Returning " + results.size() + " notification(s)");
return results;
} catch (Exception e) { } catch (Exception e) {
Log.e(TAG, "Fetch failed", e); Log.e(TAG, "Fetch failed", e);