diff --git a/app/src/main/java/net/christianbeier/droidvnc_ng/InputService.java b/app/src/main/java/net/christianbeier/droidvnc_ng/InputService.java index a08b5e57..1fd1ec04 100644 --- a/app/src/main/java/net/christianbeier/droidvnc_ng/InputService.java +++ b/app/src/main/java/net/christianbeier/droidvnc_ng/InputService.java @@ -27,6 +27,8 @@ import android.view.ViewConfiguration; import android.graphics.Path; +import androidx.preference.PreferenceManager; + public class InputService extends AccessibilityService { /** @@ -79,6 +81,7 @@ public void onServiceConnected() super.onServiceConnected(); instance = this; mMainHandler = new Handler(instance.getMainLooper()); + mScaling = PreferenceManager.getDefaultSharedPreferences(this).getFloat(Constants.PREFS_KEY_SETTINGS_SCALING, new Defaults(this).getScaling()); Log.i(TAG, "onServiceConnected"); }