Search in sources :

Example 1 with PermissionRequester

use of com.keylesspalace.tusky.interfaces.PermissionRequester in project Tusky by Vavassor.

the class BaseActivity method onRequestPermissionsResult.

@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
    super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    if (requesters.containsKey(requestCode)) {
        PermissionRequester requester = requesters.remove(requestCode);
        requester.onRequestPermissionsResult(permissions, grantResults);
    }
}
Also used : PermissionRequester(com.keylesspalace.tusky.interfaces.PermissionRequester)

Aggregations

PermissionRequester (com.keylesspalace.tusky.interfaces.PermissionRequester)1