app/src/main/res/xml/pref_general.xml
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="General Settings">
<SwitchPreference
android:title="Show Hint"
android:defaultValue="true"
android:key="showHint"
android:summary="Shows hints in the app (e.g. How to add/remove from favourites)" />
<SwitchPreference
android:title="Show Favourites List Tips"
android:defaultValue="true"
android:key="showFavHint"
android:summary="Shows tips for your favourites list when you press and hold a bus service" />
<ListPreference android:title="Application Theme" android:summary="%s" android:defaultValue="batterydefault" android:entries="@array/dark_mode_selector"
android:entryValues="@array/dark_mode_selector_option" android:key="app_theme" />
<!-- Currently Disabled until we have another companion device supported -->
<Preference
android:title="Companion Device"
android:defaultValue="none"
android:key="companionDevice"
android:summary="Currently Unavailable"
android:enabled="false" />
<EditTextPreference
android:title="Number of nearby bus stops shown (Default 20)"
android:summary="%s"
android:defaultValue="20"
android:inputType="number"
android:key="nearbyStopsCount" />
<SwitchPreference
android:title="Use Server Time"
android:defaultValue="false"
android:key="useServerTime"
android:summary="Enable to use server time instead of device time" />
<SwitchPreference
android:title="Use Map Popup"
android:defaultValue="true"
android:key="mapPopup"
android:summary="Show the map in a popup instead. \nNote: Popup will be forced in a future update" />
<SwitchPreference
android:title="NTU Bus Tracker"
android:defaultValue="false"
android:key="showntushuttle"
android:summary="Enables NTU Shuttle Bus Tracking Page" />
<SwitchPreference
android:title="Show NTU SBS Stops"
android:defaultValue="true"
android:key="showntusbsstops"
android:summary="Check to show the stops that SBS bus services stops at NTU" />
<EditTextPreference
android:title="NTU Shuttle auto-refresh (Min 5 secs)"
android:summary="%s"
android:defaultValue="10"
android:inputType="number"
android:key="ntushuttlerefrate" />
</PreferenceCategory>
<PreferenceCategory android:title="Database Settings">
<CheckBoxPreference
android:title="Bus Stops Database Loaded"
android:defaultValue="false"
android:key="busDBLoaded"
android:summary="Whether the bus stops database has already been loaded. Uncheck to reload database" />
<Preference android:key="busDBTimeUpdated" android:title="Last Updated (Bus Database)" />
</PreferenceCategory>
<PreferenceCategory android:title="Developer Settings (Advanced)">
<Preference android:title="Favourites JSON" android:key="fav_json" android:summary="View JSON String for your favourites" />
<Preference android:title="Location Values" android:key="location_value" android:summary="View Location Values detected by app" />
</PreferenceCategory>
</PreferenceScreen>