Skip to content

Commit 7dc49e5

Browse files
Mygodkaneawk
authored andcommitted
Show nothing for profiles with no bandwidth history
1 parent e915ea9 commit 7dc49e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/com/github/shadowsocks/ProfilesFragment.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ final class ProfilesFragment extends ToolbarFragment with Toolbar.OnMenuItemClic
109109
}
110110
title.setText(item.getName)
111111
address.setText(if (item.nameIsEmpty) "" else item.formattedAddress)
112-
traffic.setText(getString(R.string.stat_profiles,
112+
traffic.setText(if (tx <= 0 && rx <= 0) null else getString(R.string.stat_profiles,
113113
TrafficMonitor.formatTraffic(tx), TrafficMonitor.formatTraffic(rx)))
114114

115115
if (item.id == app.profileId) {

0 commit comments

Comments
 (0)