Skip to content

Commit

Permalink
Add link to MozStumbler in preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Sep 14, 2015
1 parent 783c12f commit 528155d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
2 changes: 2 additions & 0 deletions src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<string name="pref_description_submit_data">Submit access point information to the public database of Mozilla Location Service</string>
<string name="pref_title_nickname">Nickname</string>
<string name="pref_description_nickname">Used for the leaderboard of Mozilla Location Service (when submitting)</string>
<string name="pref_title_install_mozstumbler">Install Mozilla Stumbler</string>
<string name="pref_description_install_mozstumbler">Mozilla Stumbler is a tool to contribute information to the public database of Mozilla Location Service</string>

<string name="pref_category_source">Data sources</string>
<string name="pref_title_use_wifis">Use Wi-Fi</string>
Expand Down
30 changes: 13 additions & 17 deletions src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,27 @@

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

<!-- <PreferenceCategory android:title="@string/pref_category_submit">
<CheckBoxPreference
android:key="submit_data"
android:title="@string/pref_title_submit_data"
android:summary="@string/pref_description_submit_data"
android:defaultValue="false" />
<EditTextPreference
android:key="nickname"
android:title="@string/pref_title_nickname"
android:summary="@string/pref_description_nickname"
android:defaultValue="" />
</PreferenceCategory>-->
<PreferenceCategory android:title="@string/pref_category_submit">
<Preference
android:summary="@string/pref_description_install_mozstumbler"
android:title="@string/pref_title_install_mozstumbler">
<intent
android:action="android.intent.action.VIEW"
android:data="market://details?id=org.mozilla.mozstumbler"/>
</Preference>
</PreferenceCategory>

<PreferenceCategory android:title="@string/pref_category_source">
<CheckBoxPreference
android:defaultValue="true"
android:key="use_wifis"
android:title="@string/pref_title_use_wifis"
android:summary="@string/pref_description_use_wifis"
android:defaultValue="true" />
android:title="@string/pref_title_use_wifis"/>
<CheckBoxPreference
android:defaultValue="true"
android:key="use_cells"
android:title="@string/pref_title_use_cells"
android:summary="@string/pref_description_use_cells"
android:defaultValue="true" />
android:title="@string/pref_title_use_cells"/>

</PreferenceCategory>

Expand Down

0 comments on commit 528155d

Please sign in to comment.