Skip to content

gsr reservation widget refactored in retrofit2 #645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 6, 2025

Conversation

Divak2004
Copy link
Contributor

No description provided.

@Divak2004
Copy link
Contributor Author

Actually test to see if the widget removes reservations after they are over. Check gsr reservation implementation to see how they implement removing reservations when over.

@Divak2004 Divak2004 self-assigned this Apr 4, 2025
Copy link
Contributor

@baronhsieh2005 baronhsieh2005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WE PUSH THESE

@@ -125,6 +127,15 @@ class MainActivity : AppCompatActivity() {
if (diningWidgetBroadCast != -1) {
setTab(DINING_ID)
}

var gsrReservationWidgetBroadCast = 0
if (intent != null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could use the scope function let here (a nitpick tho)

}
}

override fun onDeleted(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might have to consider canceling/stopping the alarmmanager here as well (since this is essentially an ondestroy for app widget provider). I might have to add this for my own dining widget implementation as well

}
}

companion object {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully after Aaron's Network PR we can separate this and make this more modular with DI

@baronhsieh2005 baronhsieh2005 merged commit 6246113 into main Jul 6, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants