Misc UI updates and fixes:

- Vertically center the server name for manually added servers
- Add padding for feature icons
- Use a popup for adding a new server
- Display pointers for both controllers
- Avoid jumps in scrolling when the focused controller changes
- Grab the GUI by the pointed position instead of the center
- Add battery level in lobby
- Use the correct width in the server list if there is a scrollbar
- Make sure the tooltip does not overflow on other layers
- Save the virtual keyboard layout in the config file
- Don't display the IP address for USB connections
- Allow receiving intents when WiVRn is already running
- Add recentering tip
This commit is contained in:
Guillaume Meunier committed 2024-11-01 14:13:58 +01:00
1 parent dca3254df9
commit e1ce484c27
20 files changed
+1190 -691

No files matched your search

+3 -32
View File
@@ -10,37 +10,8 @@ public class MainActivity extends android.app.NativeActivity
}
@Override
public native void onRequestPermissionsResult(int requestCode, String [] permissions, int[] grantResults);
public native void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults);
// @Override
// public void onRequestPermissionsResult(int requestCode, String [] permissions, int[] grantResults)
// {
// super.onRequestPermissionsResult(requestCode, permissions, grantResults);
// // switch (requestCode) {
// // case REQUEST_CODE_STORAGE_PERMISSION:
// // if (permissionsGranted(permissions, grantResults)) {
// // NativeApp.sendMessageFromJava("permission_granted", "storage");
// // } else {
// // NativeApp.sendMessageFromJava("permission_denied", "storage");
// // }
// // break;
// // case REQUEST_CODE_LOCATION_PERMISSION:
// // if (permissionsGranted(permissions, grantResults)) {
// // mLocationHelper.startLocationUpdates();
// // }
// // break;
// // case REQUEST_CODE_CAMERA_PERMISSION:
// // if (mCameraHelper != null && permissionsGranted(permissions, grantResults)) {
// // mCameraHelper.startCamera();
// // }
// // break;
// // case REQUEST_CODE_MICROPHONE_PERMISSION:
// // if (permissionsGranted(permissions, grantResults)) {
// // NativeApp.audioRecording_Start();
// // }
// // break;
// // default:
// // }
//
// }
@Override
public native void onNewIntent(android.content.Intent intent);
}