-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
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. |
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
No description provided.