Fixing use of new API available only on API 24

Change-Id: Iaf29d46925c45eeda485f882c1f59841fc3cfcea
1 file changed