File tree Expand file tree Collapse file tree
android/hello_sdl_android/src/main/java/com/sdl/hellosdlandroid Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ protected void onCreate(Bundle savedInstanceState) {
2323 setContentView (R .layout .activity_main );
2424
2525 if (BuildConfig .TRANSPORT .equals ("MULTI" ) || BuildConfig .TRANSPORT .equals ("MULTI_HB" )) {
26- if (permissionsNeeded ().length >0 ) {
27- requestPermission (permissionsNeeded (),REQUEST_CODE );
26+ if (permissionsNeeded ().length > 0 ) {
27+ requestPermission (permissionsNeeded (), REQUEST_CODE );
2828 if (checkBTPermission ()) {
2929 return ;
3030 }
@@ -39,7 +39,7 @@ protected void onCreate(Bundle savedInstanceState) {
3939 }
4040
4141 private boolean checkBTPermission () {
42- return Build .VERSION .SDK_INT >= Build .VERSION_CODES .S && !checkPermission (Manifest .permission .BLUETOOTH_CONNECT );
42+ return Build .VERSION .SDK_INT >= Build .VERSION_CODES .S && !checkPermission (Manifest .permission .BLUETOOTH_CONNECT );
4343 }
4444
4545 private boolean checkPNPermission () {
@@ -52,7 +52,6 @@ private boolean checkPermission(String permission) {
5252
5353 private void requestPermission (String [] permissions , int REQUEST_CODE ) {
5454 ActivityCompat .requestPermissions (this , permissions , REQUEST_CODE );
55-
5655 }
5756
5857 private String [] permissionsNeeded () {
You can’t perform that action at this time.
0 commit comments