Added check that we need BT permissions for BLE2 data source as well as BLE data source.
This commit is contained in:
@@ -323,7 +323,7 @@ public class StartupActivity extends AppCompatActivity {
|
|||||||
pb.setIndeterminateDrawable(getResources().getDrawable(R.drawable.start_server));
|
pb.setIndeterminateDrawable(getResources().getDrawable(R.drawable.start_server));
|
||||||
pb.setProgressDrawable(getResources().getDrawable(R.drawable.start_server));
|
pb.setProgressDrawable(getResources().getDrawable(R.drawable.start_server));
|
||||||
|
|
||||||
if (mSdDataSourceName.equals("BLE")) {
|
if (mSdDataSourceName.equals("BLE") || mSdDataSourceName.equals("BLE2")) {
|
||||||
if (!areBTPermissionsOK()) {
|
if (!areBTPermissionsOK()) {
|
||||||
Log.i(TAG, "Bluetooth permissions NOT OK");
|
Log.i(TAG, "Bluetooth permissions NOT OK");
|
||||||
tv.setText(getString(R.string.BTPermissionWarning));
|
tv.setText(getString(R.string.BTPermissionWarning));
|
||||||
|
|||||||
Reference in New Issue
Block a user