1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-20 07:21:40 +02:00

Quick-and-dirty workaround for #244

until I get some time to look into.
This commit is contained in:
Erik Johansson
2018-04-15 11:59:43 +02:00
parent 9d934c1281
commit b3508ac13a

View File

@@ -300,7 +300,7 @@ public class BluetoothPreferences extends PreferenceFragment {
switch (requestCode) {
case PermissionHelper.PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION: {
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
startBluetoothDiscovery();
//startBluetoothDiscovery();
} else {
Toast.makeText(getActivity(), R.string.permission_not_granted, Toast.LENGTH_SHORT).show();
}