packages/apps/Settings
Revision | 8393e8efeccc004f131796aa96a65d2483d2f0bb (tree) |
---|---|
Time | 2011-08-05 15:37:50 |
Author | Kelly2.Blue <Kelly2.Blue@gmai...> |
Commiter | Chih-Wei Huang |
Add new option to allow user to enable/disable soft keyboard
Change-Id: I6de2e42046f2672bdb3d512842597c77a91b2108
@@ -2671,4 +2671,7 @@ found in the list of installed applications.</string> | ||
2671 | 2671 | from their cell phone carrier. The use of the string is similar to the string |
2672 | 2672 | "system_update_settings_list_item_title" in this project. [CHAR LIMIT=25] --> |
2673 | 2673 | <string name="additional_system_update_settings_list_item_title">Additional system updates</string> |
2674 | + | |
2675 | + <string name="softkeyboard_enable">SoftKeyBoard Enable</string> | |
2676 | + <string name="softkeyboard_enable_summary">Enable SoftKeyBoard</string> | |
2674 | 2677 | </resources> |
@@ -35,5 +35,11 @@ | ||
35 | 35 | android:summaryOn="@string/auto_punctuate_summary" |
36 | 36 | android:summaryOff="@string/auto_punctuate_summary" |
37 | 37 | android:persistent="false"/> |
38 | + <CheckBoxPreference | |
39 | + android:key="softkeyboard" | |
40 | + android:title="@string/softkeyboard_enable" | |
41 | + android:summaryOn="@string/softkeyboard_enable_summary" | |
42 | + android:summaryOff="@string/softkeyboard_enable_summary" | |
43 | + android:persistent="false"/> | |
38 | 44 | |
39 | 45 | </PreferenceScreen> |
@@ -30,6 +30,7 @@ public class PhysicalKeyboardSettings extends PreferenceActivity { | ||
30 | 30 | "auto_caps", |
31 | 31 | "auto_replace", |
32 | 32 | "auto_punctuate", |
33 | + "softkeyboard", | |
33 | 34 | }; |
34 | 35 | |
35 | 36 | // Note: Order of this array should correspond to the order of the above array |
@@ -37,6 +38,7 @@ public class PhysicalKeyboardSettings extends PreferenceActivity { | ||
37 | 38 | System.TEXT_AUTO_CAPS, |
38 | 39 | System.TEXT_AUTO_REPLACE, |
39 | 40 | System.TEXT_AUTO_PUNCTUATE, |
41 | + System.SOFTKEYBOARD, | |
40 | 42 | }; |
41 | 43 | |
42 | 44 | // Note: Order of this array should correspond to the order of the above array |
@@ -44,6 +46,7 @@ public class PhysicalKeyboardSettings extends PreferenceActivity { | ||
44 | 46 | 1, |
45 | 47 | 1, |
46 | 48 | 1, |
49 | + 0, | |
47 | 50 | }; |
48 | 51 | |
49 | 52 | @Override |