diff options
author | Jeremy Klein <jlklein@google.com> | 2015-10-07 11:38:35 -0700 |
---|---|---|
committer | Jeremy Klein <jlklein@google.com> | 2015-10-09 11:29:27 -0700 |
commit | be032f4719736adb19c1ec174d869923555e6d48 (patch) | |
tree | c56cf7f6f11687bf08ff60feb7b11f0d0929c5e7 /app | |
parent | 93f28ba0db2d4c3cfe699aa7b217362e608bdccd (diff) | |
download | connectbot-be032f4719736adb19c1ec174d869923555e6d48.tar.gz connectbot-be032f4719736adb19c1ec174d869923555e6d48.tar.bz2 connectbot-be032f4719736adb19c1ec174d869923555e6d48.zip |
Make the pg up/down gesture a preference which is disabled by default.
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/org/connectbot/util/PreferenceConstants.java | 1 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 7 | ||||
-rw-r--r-- | app/src/main/res/xml-v14/preferences.xml | 7 | ||||
-rw-r--r-- | app/src/main/res/xml/preferences.xml | 7 |
4 files changed, 21 insertions, 1 deletions
diff --git a/app/src/main/java/org/connectbot/util/PreferenceConstants.java b/app/src/main/java/org/connectbot/util/PreferenceConstants.java index eb0e396..fe80f24 100644 --- a/app/src/main/java/org/connectbot/util/PreferenceConstants.java +++ b/app/src/main/java/org/connectbot/util/PreferenceConstants.java @@ -46,6 +46,7 @@ public class PreferenceConstants { public static final String FULLSCREEN = "fullscreen"; public static final String TITLEBARHIDE = "titlebarhide"; + public static final String PG_UPDN_GESTURE = "pgupdngesture"; public static final String KEYMODE = "keymode"; diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7d44f8d..b92cc28 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -83,7 +83,7 @@ <string name="page_updn_header">"Page Up / Page Down"</string> <!-- Instructions about paging up and down in the terminal. --> - <string name="page_updn_content">"Swiping your finger up and down on the left third of the screen will send a page up and page down key to the remote host. Many programs map this to scrolling back into history such as irssi or tinyfugue."</string> + <string name="page_updn_content">"NOTE: This must be enabled in settings."\n\n"Swiping your finger up and down on the left third of the screen will send a page up and page down key to the remote host. Many programs map this to scrolling back into history such as irssi or tinyfugue."</string> <!-- Captions for images showing the page up/down gestures. --> <string name="page_up">"Page up"</string> @@ -236,6 +236,11 @@ <!-- Summary for the titlebar hide preference --> <string name="pref_titlebarhide_summary">"Tap console to show title bar and access menu"</string> + <!-- Name for the page up/down gesture preference --> + <string name="pref_pg_updn_gesture_title">"Page up/down gesture"</string> + <!-- Summary for the full screen preference --> + <string name="pref_pg_updn_gesture_summary">"Swipe the left third of the screen to send pg up/dn to the terminal"</string> + <!-- Name for the full screen preference --> <string name="pref_fullscreen_title">"Full screen"</string> <!-- Summary for the full screen preference --> diff --git a/app/src/main/res/xml-v14/preferences.xml b/app/src/main/res/xml-v14/preferences.xml index d04119f..9e76c36 100644 --- a/app/src/main/res/xml-v14/preferences.xml +++ b/app/src/main/res/xml-v14/preferences.xml @@ -89,6 +89,13 @@ android:defaultValue="false" /> + <org.connectbot.util.SwitchCompatPreference + android:key="pgupdngesture" + android:title="@string/pref_pg_updn_gesture_title" + android:summary="@string/pref_pg_updn_gesture_summary" + android:defaultValue="false" + /> + <SwitchPreference android:key="volumefont" android:title="@string/pref_volumefont_title" diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 88b9855..e87b263 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -90,6 +90,13 @@ /> <org.connectbot.util.SwitchCompatPreference + android:key="pgupdngesture" + android:title="@string/pref_pg_updn_gesture_title" + android:summary="@string/pref_pg_updn_gesture_summary" + android:defaultValue="false" + /> + + <org.connectbot.util.SwitchCompatPreference android:key="volumefont" android:title="@string/pref_volumefont_title" android:summary="@string/pref_volumefont_summary" |