Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

1.0.0-beta15.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@AlexanderEggers AlexanderEggers released this 29 Jan 23:59

This release contains several breaking API changes and a few bug fixes.

Features

  • Alerts can have a priority. The lower the priority value, the higher it's importance to the system. A new alert which is about to be displayed to the system, is closing the alert which has a lower importance to the system (higher priority value). The new alert will only be displayed if no other alert with the same or lower priority have been found. You can use setPriority(int) to make use of this new feature. If closing a prioritized alert, you can use showNext() (HitogoController) to display the next "important" alert.
  • The onClick listener includes two new parameter which will break your code. These two new parameter are Alert and Object. Alert is the current alert object which used this button listener. Object is the optional parameter which can be attached to the button listener using setButtonListener(ButtonListener, T) or setButtonListener(ButtonListener, T, boolean) . T stands for the type of your optional parameter. The onClick will use the same T for it's implementation. If no value given, it will use Object.
  • Several methods and fields have changed their visibility and declaration to simplify unit testing and the possibility to extend the library with your own classes.
  • showNext inside the HitogoController is requiring a Alert object instead of AlertType.
  • Added several provider methods to the HitogoParamsHolder.
  • Start working on javadoc documentation.

Bugfixes

  • showNext (HitogoController): Was trying to show already visible alerts.
  • Closing the underlying activity or fragment was resulting in closing all types of alerts. This has been changed to only close dialogs to prevent context leaking.