adjust api level wrapping
Merge pull request #549 from emdete/p2

adjust api level wrapping