mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 09:43:45 +01:00
Fix the build on the buildbot by avoiding fancy new Java features. Fixes #9979
This commit is contained in:
1 parent
d36fdd6e51
commit
271a3bb7d3
1 file changed
+12
-18
@@ -1200,26 +1200,20 @@ public abstract class NativeActivity extends Activity implements SurfaceHolder.C
|
||||
NativeApp.sendMessage("permission_granted", "storage");
|
||||
}
|
||||
} else if (command.equals("gps_command")) {
|
||||
switch (params) {
|
||||
case "open":
|
||||
if(!askForPermissions(permissionsForLocation, REQUEST_CODE_LOCATION_PERMISSION)) {
|
||||
mLocationHelper.startLocationUpdates();
|
||||
}
|
||||
break;
|
||||
case "close":
|
||||
mLocationHelper.stopLocationUpdates();
|
||||
break;
|
||||
if (params.equals("open")) {
|
||||
if (!askForPermissions(permissionsForLocation, REQUEST_CODE_LOCATION_PERMISSION)) {
|
||||
mLocationHelper.startLocationUpdates();
|
||||
}
|
||||
} else if (params.equals("close")) {
|
||||
mLocationHelper.stopLocationUpdates();
|
||||
}
|
||||
} else if (command.equals("camera_command")) {
|
||||
switch (params) {
|
||||
case "startVideo":
|
||||
if(!askForPermissions(permissionsForCamera, REQUEST_CODE_CAMERA_PERMISSION)) {
|
||||
mCameraHelper.startCamera();
|
||||
}
|
||||
break;
|
||||
case "stopVideo":
|
||||
mCameraHelper.stopCamera();
|
||||
break;
|
||||
if (params.equals("startVideo")) {
|
||||
if (!askForPermissions(permissionsForCamera, REQUEST_CODE_CAMERA_PERMISSION)) {
|
||||
mCameraHelper.startCamera();
|
||||
}
|
||||
} else if (params.equals("stopVideo")) {
|
||||
mCameraHelper.stopCamera();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user