Created
May 29, 2018 08:35
-
-
Save talosdev/20118194db4c555d4c4583041402389e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| public Single<PermissionRequestResult> requestPermission() { | |
| subject = AsyncSubject.create(); | |
| if (activityWeakReference.get() != null) { | |
| ActivityCompat.requestPermissions( | |
| activityWeakReference.get(), | |
| new String[] {permission}, | |
| requestCode); | |
| } | |
| return subject.firstOrError(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment