Commit 57be4055 authored by Mygod's avatar Mygod

Show nothing for profiles with no bandwidth history

parent 2d910271
...@@ -113,7 +113,7 @@ final class ProfilesFragment extends ToolbarFragment with Toolbar.OnMenuItemClic ...@@ -113,7 +113,7 @@ final class ProfilesFragment extends ToolbarFragment with Toolbar.OnMenuItemClic
} }
title.setText(item.getName) title.setText(item.getName)
address.setText(if (item.nameIsEmpty) "" else item.formattedAddress) address.setText(if (item.nameIsEmpty) "" else item.formattedAddress)
traffic.setText(getString(R.string.stat_profiles, traffic.setText(if (tx <= 0 && rx <= 0) null else getString(R.string.stat_profiles,
TrafficMonitor.formatTraffic(tx), TrafficMonitor.formatTraffic(rx))) TrafficMonitor.formatTraffic(tx), TrafficMonitor.formatTraffic(rx)))
if (item.id == app.profileId) { if (item.id == app.profileId) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment