googlesamples / easypermissions

Simplify Android M system permissions
https://firebaseopensource.com/projects/googlesamples/easypermissions/
Apache License 2.0
9.87k stars 1.46k forks source link

Add setOpenInNewTask() to AppSettingsDialog.Builder #237

Closed sebkur closed 6 years ago

sebkur commented 6 years ago

Added features as discussed in #230.

When using setOpenInNewTask() for building the dialog, the app settings screen will be opened using an Intent that has the flag Intent.FLAG_ACTIVITY_NEW_TASK added before calling startActivityForResult(). Hence the settings Activity will not appear as a screen within the task of the activity it has been opened from but instead as a separate task that can be brought to front and back separately by the user.

samtstern commented 6 years ago

@sebkur thanks for the submission!

sebkur commented 6 years ago

I just pushed a new version

samtstern commented 6 years ago

@sebkur LGTM, thank you!