Copy feature settings from the current profile to the new profile.

And fix #432.
This commit is contained in:
Mygod
2015-11-18 21:40:33 +08:00
parent 95952f0fec
commit 14414c644d
4 changed files with 20 additions and 13 deletions
@@ -20,7 +20,7 @@ object TrafficMonitor {
var txTotal: Long = 0
var rxTotal: Long = 0
def getTraffic(): Traffic = {
def getTraffic: Traffic = {
new Traffic(Math.max(TrafficStats.getTotalTxBytes - TrafficStats.getUidTxBytes(uid), 0),
Math.max(TrafficStats.getTotalRxBytes - TrafficStats.getUidRxBytes(uid), 0), System.currentTimeMillis())
}
@@ -84,4 +84,3 @@ object TrafficMonitor {
}
}
class TrafficMonitor ()