Simplify Android M system permissions
Version 1.0.0 is the first major-version release of EasyPermissions! This reflects the overall stability of the API and library internals.
AppSettingsDialog.Builder#Builder([Activity/Fragment/android.app.Fragment], String)
constructors removed. Use AppSettingsDialog.Builder#setRationale([String/int])
instead or leave blank to use the default rationale message.AppSettingsDialog.Builder#setNegativeButton(String, DialogInterface.OnClickListener)
removed. To know if a user cancelled the request, check if your permissions were given with EasyPermissions#hasPermissions(...)
in Activity#onActivityResult(...)
. If you still don't have the right permissions, then the request was cancelled.AppSettingsDialog
via AppSettingsDialog.Builder#setThemeResId(int)
color{Primary,PrimaryDark,Accent}
), AppSettingsDialog
will automatically use them to correctly style the dialog based on your app's theme instead of using the system defaults.appcompat-v7
dependency is no longer leaked to consumersThis version of EasyPermissions has no behavior changes, but contains two developer improvements: