mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
add another bt perms test
This commit is contained in:
parent
871a45d3d3
commit
e5d91be4c4
2 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ android {
|
||||||
|
|
||||||
xw4GPlay {
|
xw4GPlay {
|
||||||
dimension "variant"
|
dimension "variant"
|
||||||
applicationId "org.eehouse.android.xw4"
|
applicationId "org.eehouse.android.xw4GPTest"
|
||||||
manifestPlaceholders = [ APP_ID: applicationId ]
|
manifestPlaceholders = [ APP_ID: applicationId ]
|
||||||
resValue "string", "app_name", "DoNotRelease"
|
resValue "string", "app_name", "DoNotRelease"
|
||||||
buildConfigField "boolean", "WIDIR_ENABLED", "false"
|
buildConfigField "boolean", "WIDIR_ENABLED", "false"
|
||||||
|
|
|
@ -150,7 +150,7 @@ public class BTUtils {
|
||||||
public static void enable( Context context )
|
public static void enable( Context context )
|
||||||
{
|
{
|
||||||
BluetoothAdapter adapter = getAdapterIf();
|
BluetoothAdapter adapter = getAdapterIf();
|
||||||
if ( null != adapter ) {
|
if ( null != adapter && havePermissions( context ) ) {
|
||||||
// Only do this after explicit action from user -- Android guidelines
|
// Only do this after explicit action from user -- Android guidelines
|
||||||
adapter.enable();
|
adapter.enable();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue