add another bt perms test

This commit is contained in:
Eric House 2022-11-29 14:20:08 -08:00
parent 871a45d3d3
commit e5d91be4c4
2 changed files with 2 additions and 2 deletions

View file

@ -140,7 +140,7 @@ android {
xw4GPlay {
dimension "variant"
applicationId "org.eehouse.android.xw4"
applicationId "org.eehouse.android.xw4GPTest"
manifestPlaceholders = [ APP_ID: applicationId ]
resValue "string", "app_name", "DoNotRelease"
buildConfigField "boolean", "WIDIR_ENABLED", "false"

View file

@ -150,7 +150,7 @@ public class BTUtils {
public static void enable( Context context )
{
BluetoothAdapter adapter = getAdapterIf();
if ( null != adapter ) {
if ( null != adapter && havePermissions( context ) ) {
// Only do this after explicit action from user -- Android guidelines
adapter.enable();
}