[TIMOB-27777] Android: Obtain holder for module references
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2020-04-15T11:55:00.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 9.0.1 |
| Components | Android |
| Labels | n/a |
| Reporter | Gary Mathews |
| Assignee | Gary Mathews |
| Created | 2020-02-24T23:52:26.000+0000 |
| Updated | 2020-04-15T11:55:00.000+0000 |
Description
- It is not possible to indirectly reference a module method or property.
*TEST CASE*
const permissions = Ti.Filesystem.requestStoragePermissions;
// Attempt to call 'requestStoragePermissions'.
permissions(e => {
if (e.success) {
console.log('Storage permissions granted.');
return;
}
console.warn('Storage permissions denied.');
});
- Should see a console log regarding storage permissions.
- Should not see
Couldn't obtain argument holder
master: https://github.com/appcelerator/titanium_mobile/pull/11498
9_0_X: https://github.com/appcelerator/titanium_mobile/pull/11561
merged to master and 9_0_X
FR Passed
*Closing ticket.* Fix verified in SDK version 9.1.0.v20200414184350. and 9.0.1.v20200414191452 Test and other information can be found at: master: https://github.com/appcelerator/titanium_mobile/pull/11498 9_0_X: https://github.com/appcelerator/titanium_mobile/pull/11561