From 3b252960ac64b0e95ead1870d74078c9b46c1a76 Mon Sep 17 00:00:00 2001 From: kevin147147 Date: Thu, 19 Oct 2023 22:58:46 +0200 Subject: [PATCH] add scale to sharedPrefs in BookmarkBase.java --- .../main/java/com/freerdp/freerdpcore/domain/BookmarkBase.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/domain/BookmarkBase.java b/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/domain/BookmarkBase.java index c8f7d9fb1..103ba2861 100644 --- a/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/domain/BookmarkBase.java +++ b/client/Android/Studio/freeRDPCore/src/main/java/com/freerdp/freerdpcore/domain/BookmarkBase.java @@ -235,6 +235,7 @@ public class BookmarkBase implements Parcelable, Cloneable screenSettings.getResolutionString().toLowerCase(locale)); editor.putInt("bookmark.width", screenSettings.getWidth()); editor.putInt("bookmark.height", screenSettings.getHeight()); + editor.putInt("bookmark.scale", screenSettings.getScale()); editor.putBoolean("bookmark.perf_remotefx", performanceFlags.getRemoteFX()); editor.putBoolean("bookmark.perf_gfx", performanceFlags.getGfx()); @@ -300,6 +301,7 @@ public class BookmarkBase implements Parcelable, Cloneable screenSettings.setResolution(sharedPrefs.getString("bookmark.resolution", "automatic"), sharedPrefs.getInt("bookmark.width", 800), sharedPrefs.getInt("bookmark.height", 600)); + screenSettings.setScale(sharedPrefs.getInt("bookmark.scale", 100)); performanceFlags.setRemoteFX(sharedPrefs.getBoolean("bookmark.perf_remotefx", false)); performanceFlags.setGfx(sharedPrefs.getBoolean("bookmark.perf_gfx", false));