mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +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 {
|
||||
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"
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue