kopia lustrzana https://github.com/sh123/codec2_talkie
Disable extensive logging
rodzic
20aab8d253
commit
024697ff04
|
@ -97,7 +97,7 @@ public class StationItem {
|
|||
public void updateFrom(StationItem stationItem) {
|
||||
setTimestampEpoch(stationItem.getTimestampEpoch());
|
||||
setDstCallsign(stationItem.getDstCallsign());
|
||||
// position item has maidenhead
|
||||
// update position if known
|
||||
if (stationItem.getMaidenHead() != null) {
|
||||
setMaidenHead(stationItem.getMaidenHead());
|
||||
setLatitude(stationItem.getLatitude());
|
||||
|
|
|
@ -30,7 +30,7 @@ public class StationItemRepository {
|
|||
if (oldStationItem == null) {
|
||||
try {
|
||||
_stationItemDao.insertStationItem(stationItem);
|
||||
Log.i(TAG, "INSERT " + stationItem.getSrcCallsign() + " '" + stationItem.getMaidenHead() + "'");
|
||||
//Log.i(TAG, "INSERT " + stationItem.getSrcCallsign() + " '" + stationItem.getMaidenHead() + "'");
|
||||
} catch (SQLiteConstraintException ex) {
|
||||
oldStationItem = _stationItemDao.getStationItem(stationItem.getSrcCallsign());
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ public class StationItemRepository {
|
|||
if (oldStationItem != null) {
|
||||
oldStationItem.updateFrom(stationItem);
|
||||
_stationItemDao.updateStationItem(oldStationItem);
|
||||
Log.i(TAG, "UPDATE " + oldStationItem.getSrcCallsign() + " '" + oldStationItem.getMaidenHead() + "'");
|
||||
//Log.i(TAG, "UPDATE " + oldStationItem.getSrcCallsign() + " '" + oldStationItem.getMaidenHead() + "'");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue