diff --git a/android/app/src/main/kotlin/com/gaurav/avnc/util/AppPreferences.kt b/android/app/src/main/kotlin/com/gaurav/avnc/util/AppPreferences.kt index 8f1b18b..c7100d5 100644 --- a/android/app/src/main/kotlin/com/gaurav/avnc/util/AppPreferences.kt +++ b/android/app/src/main/kotlin/com/gaurav/avnc/util/AppPreferences.kt @@ -40,7 +40,7 @@ class AppPreferences(context: Context) { } inner class Gesture { - val style; get() = prefs.getString("gesture_style", "touchscreen")!! + val style; get() = prefs.getString("gesture_style", "touchpad")!! val tap1 = "left-click" //Preference UI was removed val tap2; get() = prefs.getString("gesture_tap2", "open-keyboard")!! val doubleTap; get() = prefs.getString("gesture_double_tap", "double-click")!! diff --git a/android/app/src/main/res/xml/pref_input.xml b/android/app/src/main/res/xml/pref_input.xml index 5875adc..615fd8c 100644 --- a/android/app/src/main/res/xml/pref_input.xml +++ b/android/app/src/main/res/xml/pref_input.xml @@ -15,7 +15,7 @@ app:title="@string/pref_gesture"> { }), body: Padding(padding: const EdgeInsets.all(12), child: Column(children: [ SizedBox.fromSize(size: const Size.square(16)), const Text("""AVNC可以带来获得更好的操控体验; -如触摸板触控,双击弹出键盘,自动剪切板,画中画模式等等。这是一个实验性功能。"""), +如触摸板触控,双指单击弹出键盘,自动剪切板,画中画模式等等。这是一个实验性功能。"""), SizedBox.fromSize(size: const Size.square(16)), Wrap(alignment: WrapAlignment.center, spacing: 4.0, runSpacing: 4.0, children: [ + OutlinedButton(style: D.commandButtonStyle, child: const Text("AVNC设置"), onPressed: () async { + await D.avncChannel.invokeMethod("launchPrefsPage", {}); + }), + OutlinedButton(style: D.commandButtonStyle, child: const Text("关于AVNC"), onPressed: () async { + await D.avncChannel.invokeMethod("launchAboutPage", {}); + }), OutlinedButton(style: D.commandButtonStyle, child: const Text("AVNC启动时分辨率设置"), onPressed: () async { String w = "1440"; String h = "720"; @@ -353,12 +359,6 @@ sed -i -E "s@^(VNC_RESOLUTION)=.*@\\1=${w}x${h}@" \$(command -v startvnc)"""); ]); }); }), - OutlinedButton(style: D.commandButtonStyle, child: const Text("AVNC设置"), onPressed: () async { - await D.avncChannel.invokeMethod("launchPrefsPage", {}); - }), - OutlinedButton(style: D.commandButtonStyle, child: const Text("关于AVNC"), onPressed: () async { - await D.avncChannel.invokeMethod("launchAboutPage", {}); - }), ]), SizedBox.fromSize(size: const Size.square(8)), SwitchListTile(title: const Text("默认使用AVNC"), subtitle: const Text("下次启动时生效"), value: Util.getGlobal("useAvnc") as bool, onChanged:(value) {