Skip to content
This repository was archived by the owner on Feb 4, 2024. It is now read-only.
This repository was archived by the owner on Feb 4, 2024. It is now read-only.

Bug: requestEach callback do not contain each permission result #355

@wangkai4556

Description

@wangkai4556

Prerequisites

1.with appcompat 1.3.0 and above
2.with permission list paramters in a special order like below

READ_PHONE_STATE
CAMERA
ACCESS_FINE_LOCATION

must in this order

Issue description

requestEach callback do not contain each permission result.
because above appcompat 1.3.0 system do not callback permission result in the order that we provide by parameters,
so some publishSubject may send before subscribe.

Actual behavior

only contain CAMERA and READ_PHONE_STATE permission

Expected behavior

contain ACCESS_FINE_LOCATION and CAMERA and READ_PHONE_STATE permission

Steps To Reproduce

config gralde
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.github.tbruyelle:rxpermissions:0.12'

config androidManifest.xml with permission

use rxpermission

RxPermission usage code

        RxPermissions(this).requestEach(
            Manifest.permission.READ_PHONE_STATE,
            Manifest.permission.CAMERA,
            Manifest.permission.ACCESS_FINE_LOCATION
        ).subscribe {
            Log.e("=====", it.toString()) 
        }

Lib Version

implementation 'com.github.tbruyelle:rxpermissions:0.12'
implementation 'androidx.appcompat:appcompat:1.3.0'

Screenshots
above appcompat 1.3.0
1

2

3

with appcompat 1.1.0

4

5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions