Skip to content
5 changes: 5 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,11 @@
<string name="p_igfilter_hint">b/BUDDY o/OBJECT ...</string>
<string name="p_igfilter_summary">Filter for incoming packets</string>
<string name="p_igfilter_entry">Enter a filter for incoming packets</string>
<string name="p_igfilter_gps_title">Auto-prepend GPS range filter</string>
<string name="p_igfilter_gps_summary">Prepend r/lat/lon/radius to filter string instead of using last APRS-IS position report, updates dynamically while connected. </string>
<string name="p_igfilter_gps_radius_title">GPS filter radius (km)</string>
<string name="p_igfilter_gps_radius_summary">Radius in kilometers for the auto GPS range filter</string>
<string name="p_igfilter_gps_radius_entry">Enter radius in kilometers</string>

<string name="p_igconnectretry">Connection Retry Interval</string>
<string name="p_igconnectretry_summary">Reconnect to server in seconds</string>
Expand Down
15 changes: 15 additions & 0 deletions res/xml/igate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@
android:hint="@string/p_igfilter_hint"
android:dialogTitle="@string/p_igfilter_entry" />

<CheckBoxPreference
android:key="p.igfilter_gps"
android:title="@string/p_igfilter_gps_title"
android:summary="@string/p_igfilter_gps_summary"
android:defaultValue="false" />

<de.duenndns.EditTextPreferenceWithValue
android:key="p.igfilter_gps_radius"
android:defaultValue="100"
android:hint="100"
android:inputType="number"
android:title="@string/p_igfilter_gps_radius_title"
android:summary="@string/p_igfilter_gps_radius_summary"
android:dialogTitle="@string/p_igfilter_gps_radius_entry" />

<de.duenndns.EditTextPreferenceWithValue
android:key="p.igsotimeout"
android:defaultValue="120"
Expand Down
2 changes: 1 addition & 1 deletion src/AprsService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ class AprsService extends Service {
def addPost(t : Int, status : String, message : String) {
val ts = System.currentTimeMillis()
db.addPost(ts, t, status, message)
if ((t == StorageDatabase.Post.TYPE_POST || t == StorageDatabase.Post.TYPE_INCMG) || (prefs.getBoolean("p.positiontois", false) && t == StorageDatabase.Post.TYPE_IG)) {
if (t == StorageDatabase.Post.TYPE_POST || t == StorageDatabase.Post.TYPE_INCMG || t == StorageDatabase.Post.TYPE_IG) {
parsePacket(ts, message, t)
parseHudPackets(ts, message)
} else {
Expand Down
Loading