javiersantos / AppUpdater

A library that checks for your apps' updates on Google Play, GitHub, Amazon, F-Droid or your own server. API 9+ required.
Apache License 2.0
1.99k stars 413 forks source link

Added possibility for custom click listeners #74

Closed joen93 closed 7 years ago

joen93 commented 7 years ago

Added the possibility to add a custom click listener for each of the buttons of the update dialog.

Developers can overwrite the default functionality by creating a new OnClickListener, or add their own functionality on top of the default functionality by extending the provided UpdateClickListener and DisableClickListener.

This feature could be useful to developers who would like to enforce updates, because they could provide some logic when the user would dismiss the update dialog (i.e. simply finish() the current activity).

javiersantos commented 7 years ago

Nice! Thank you 👍