gdgfresno / androidify-yourself

Androidify Yourself app for 2017 Valley DevFest, based on the GDG Riga event app
https://vdf2017-3a9f6.firebaseapp.com/participants/
MIT License
1 stars 0 forks source link

After accepting the permissions for share you need to click the button again #1

Closed MrCsabaToth closed 6 years ago

MrCsabaToth commented 6 years ago

Need to debug why it doesn't work well the first time.

MrCsabaToth commented 6 years ago

Problem was that within an Activity we need to call ActivityCompat.requestPermissions whereas in a Fragment you just need requestPermissions https://stackoverflow.com/questions/32714787/android-m-permissions-onrequestpermissionsresult-not-being-called