Use preview_sdk_int for version code checks
Don't use Build.VERSION.CODENAME to check for R. Use Build.VERSION.SDK_INT > Q || (Build.VERSION.SDK_INT == Q && Build.VERSION.PREVIEW_SDK_INT > 0) Bug: 146235828 Test: m DocumentsUIGoogle Change-Id: I59e327d4e92d41a93b6bea145b8497fd4f85108c
Loading
Please register or sign in to comment