mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-16 21:54:05 +02:00
should fixed issue #952 with old Android smartphones which don't know BLUETOOTH_SCAN permission.
This commit is contained in:
@@ -199,7 +199,7 @@ public class BluetoothSettingsFragment extends Fragment {
|
|||||||
alertDialog.setCanceledOnTouchOutside(false);
|
alertDialog.setCanceledOnTouchOutside(false);
|
||||||
alertDialog.show();
|
alertDialog.show();
|
||||||
|
|
||||||
} else if (shouldShowRequestPermissionRationale(Manifest.permission.BLUETOOTH_SCAN)) {
|
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S && targetSdkVersion >= Build.VERSION_CODES.S && shouldShowRequestPermissionRationale(Manifest.permission.BLUETOOTH_SCAN)) {
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
AlertDialog.Builder builder = new AlertDialog.Builder(context);
|
||||||
Timber.d("No access Bluetooth scan permission granted");
|
Timber.d("No access Bluetooth scan permission granted");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user