Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix: no forcely adaptive view style, if peer is android (#8189)

fufesoud2f119b85e9e
diff --git a/flutter/lib/common/widgets/toolbar.dart b/flutter/lib/common/widgets/toolbar.dart
index 84a03764d..7e0d32ab7 100644
--- a/flutter/lib/common/widgets/toolbar.dart
+++ b/flutter/lib/common/widgets/toolbar.dart
@@ -564,7 +564,7 @@ Future<List<TToggleMenu>> toolbarDisplayToggle(
child: Text(translate('Disable clipboard'))));
}
// lock after session end
- if (ffiModel.keyboard) {
+ if (ffiModel.keyboard && !ffiModel.isPeerAndroid) {
final enabled = !ffiModel.viewOnly;
final option = 'lock-after-session-end';
final value =
diff --git a/flutter/lib/models/model.dart b/flutter/lib/models/model.dart
index 4ecf36856..169635e1a 100644
--- a/flutter/lib/models/model.dart
+++ b/flutter/lib/models/model.dart
@@ -1220,10 +1220,6 @@ class ImageModel with ChangeNotifier {
if (parent.target != null) {
await initializeCursorAndCanvas(parent.target!);
}
- if (parent.target?.ffiModel.isPeerAndroid ?? false) {
- bind.sessionSetViewStyle(sessionId: sessionId, value: 'adaptive');
- parent.target?.canvasModel.updateViewStyle();
- }
}
_image?.dispose();
_image = image;