Merge "Show "0 B used" when no data usage this cycle" into main
This commit is contained in:
@@ -107,7 +107,7 @@ class DataUsagePreferenceController(context: Context, key: String) :
|
||||
|
||||
private fun getDataUsageSummary(): String? {
|
||||
val repository = createNetworkCycleDataRepository() ?: return null
|
||||
repository.loadFirstCycle()?.takeIf { it.usage > 0 }?.let { usageData ->
|
||||
repository.loadFirstCycle()?.let { usageData ->
|
||||
return mContext.getString(
|
||||
R.string.data_usage_template,
|
||||
usageData.formatUsage(mContext),
|
||||
|
||||
Reference in New Issue
Block a user