| Modifier and Type | Field and Description |
|---|---|
| private final DialogService | |
| private static final int | |
| private final GuiPreferences | |
| private @Nullable DelayedExecution |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| private void | |
| public void | |
| private void | scheduleAfterDays(int days)
Schedules the next donation notification after a specified number of days to take care of situation where the user may leave the application open for an extended period. |
| public void | |
| private void |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| DONATION_INTERVAL_DAYS | back to summary |
|---|---|
| private static final int DONATION_INTERVAL_DAYS | |
| preferences | back to summary |
|---|---|
| private final GuiPreferences preferences | |
| scheduledShow | back to summary |
|---|---|
| private @Nullable DelayedExecution scheduledShow | |
| DonationProvider | back to summary |
|---|---|
| public DonationProvider(GuiPreferences preferences, DialogService dialogService) | |
| calculateDaysUntilNextPopup | back to summary |
|---|---|
| public int calculateDaysUntilNextPopup(int lastShownEpochDay) | |
| cancelScheduled | back to summary |
|---|---|
| private void cancelScheduled() | |
| cleanUp | back to summary |
|---|---|
| public void cleanUp() | |
| scheduleAfterDays | back to summary |
|---|---|
| private void scheduleAfterDays(int days) Schedules the next donation notification after a specified number of days to take care of situation where the user may leave the application open for an extended period. | |
| showIfNeeded | back to summary |
|---|---|
| public void showIfNeeded() | |
| showNotification | back to summary |
|---|---|
| private void showNotification() | |