OSDN Git Service

Add new option to allow user to enable/disable soft keyboard
authorKelly2.Blue <Kelly2.Blue@gmail.com>
Mon, 19 Oct 2009 18:52:15 +0000 (11:52 -0700)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 26 Nov 2010 05:52:10 +0000 (13:52 +0800)
Change-Id: I6de2e42046f2672bdb3d512842597c77a91b2108

res/values/strings.xml
res/xml/keyboard_settings.xml
src/com/android/settings/PhysicalKeyboardSettings.java

index 1e0d807..054ed6c 100644 (file)
@@ -2528,4 +2528,7 @@ found in the list of installed applications.</string>
     <string name="sound_category_calls_title">Incoming calls</string>
     <string name="sound_category_notification_title">Notifications</string>
     <string name="sound_category_feedback_title">Feedback</string>
+
+    <string name="softkeyboard_enable">SoftKeyBoard Enable</string>
+    <string name="softkeyboard_enable_summary">Enable SoftKeyBoard</string>
 </resources>
index 85d90ab..f67f399 100644 (file)
             android:summaryOn="@string/auto_punctuate_summary"
             android:summaryOff="@string/auto_punctuate_summary"
             android:persistent="false"/>
+    <CheckBoxPreference
+            android:key="softkeyboard"
+            android:title="@string/softkeyboard_enable"
+            android:summaryOn="@string/softkeyboard_enable_summary"
+            android:summaryOff="@string/softkeyboard_enable_summary"
+            android:persistent="false"/>
             
 </PreferenceScreen>
index acd0bd6..910be2c 100644 (file)
@@ -30,6 +30,7 @@ public class PhysicalKeyboardSettings extends PreferenceActivity {
             "auto_caps",
             "auto_replace",
             "auto_punctuate",
+            "softkeyboard",
     };
     
     // Note: Order of this array should correspond to the order of the above array
@@ -37,6 +38,7 @@ public class PhysicalKeyboardSettings extends PreferenceActivity {
             System.TEXT_AUTO_CAPS,
             System.TEXT_AUTO_REPLACE,
             System.TEXT_AUTO_PUNCTUATE,
+            System.SOFTKEYBOARD,
     };
 
     // Note: Order of this array should correspond to the order of the above array
@@ -44,6 +46,7 @@ public class PhysicalKeyboardSettings extends PreferenceActivity {
             1,
             1,
             1,
+            1,
     };
 
     @Override