1.0.0
版本发布时间: 2017-08-31 07:54:38
googlesamples/easypermissions最新发布版本:3.0.0(2019-01-24 05:59:08)
Version 1.0.0 is the first major-version release of EasyPermissions! This reflects the overall stability of the API and library internals.
API Changes
-
AppSettingsDialog.Builder#Builder([Activity/Fragment/android.app.Fragment], String)
constructors removed. UseAppSettingsDialog.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 withEasyPermissions#hasPermissions(...)
inActivity#onActivityResult(...)
. If you still don't have the right permissions, then the request was cancelled.
New features
- You can now specify a custom theme for
AppSettingsDialog
viaAppSettingsDialog.Builder#setThemeResId(int)
- In addition, if you use AppCompat color theming and have the three basic colors setup (
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.
Bug fixes
- Use support and framework dialog implementations where applicable (#142 and #156)
-
appcompat-v7
dependency is no longer leaked to consumers