Simplify insertEventLog usage
Created by: E3V3A
Currently the insertEventLog function looks like this:
dbHelper.insertEventLog(
MiscUtils.getCurrentTimeStamp(), // time
mMonitorCell.getLAC(), // LAC
mMonitorCell.getCID(), // CID
mMonitorCell.getPSC(), // PSC
String.valueOf(mMonitorCell.getLat()), // gpsd_lat
String.valueOf(mMonitorCell.getLon()), // gpsd_lon
(int)mMonitorCell.getAccuracy(), // gpsd_accu
1, // DF_id
"Changing LAC" // DF_desc
);
However, this is highly inefficient as we need to always load all items that can be automatically loaded within function. The only variables we need to supply should be DF_id and DF_desc.
Like this: insertEventLog(1, "Changing LAC");
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.