Skip to content

Commit

Permalink
Clean up the preferences xml so that it won't crash
Browse files Browse the repository at this point in the history
  • Loading branch information
matburt committed May 26, 2010
1 parent 4e4884d commit 5f9986c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
<item>Internal</item>
<item>Storage Card</item>
</string-array>
<string-array name="storageModesVals">
<item>Internal</item>
<item>Storage Card</item>
</string-array>
</resources>
18 changes: 9 additions & 9 deletions res/xml/preferences.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="Connectivity">
<EditTextpreference
<EditTextPreference
android:name="URL"
android:summary="Full URL path to your index.org file"
android:defaultValue="http://example.com/index.org"
android:title="URL"
android:key="webUrl" />
<EditTextpreference
<EditTextPreference
android:name="Username"
android:summary="Username to login"
android:defaultValue="user"
android:title="Username"
android:key="webUser" />
<EditTextpreference
<EditTextPreference
android:name="Password"
android:summary="Password to login"
android:defaultValue="password"
Expand All @@ -27,6 +27,7 @@
android:summary="Where to store the org files"
android:key="storageMode"
android:entries="@array/storageModes"
android:entryValues="@array/storageModesVals"
android:defaultValue="1" />
</PreferenceCategory>
<PreferenceCategory android:title="Other">
Expand All @@ -35,11 +36,10 @@
android:title="Widget Preferences"
android:summary="Preferences for a Widget">
</PreferenceScreen>
<Textpreference
android:name="VersionDisp"
android:summary="The App Version"
android:defaultValue="aversiondisp"
android:title="Password"
android:key="verDisp" />
<PreferenceScreen
android:key="VersionDisp"
android:title="Version"
android:summary="0.3alpha">
</PreferenceScreen>
</PreferenceCategory>
</PreferenceScreen>

0 comments on commit 5f9986c

Please sign in to comment.