diff options
author | Samuel Holland <samuel@sholland.org> | 2018-04-30 11:36:56 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-04-30 11:39:23 -0500 |
commit | 8e4fb91a28c01b753a72a8a9130e7b4d78e9ee83 (patch) | |
tree | c6a041288a1b5de1e97f73343e0a7d6fa17a58ed /app/src/main/java/com/wireguard/android | |
parent | 7eedf08d4bbe8d15a38cde777d92e72930ffa2e8 (diff) |
global: Clean up XML
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'app/src/main/java/com/wireguard/android')
-rw-r--r-- | app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java index 5291d8fb..2b81a98a 100644 --- a/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java +++ b/app/src/main/java/com/wireguard/android/fragment/TunnelListFragment.java @@ -254,9 +254,12 @@ public class TunnelListFragment extends BaseFragment { else if (tunnels.isEmpty() && throwables.size() == 1) /* Use the exception message from above. */ ; else if (throwables.isEmpty()) - message = getString(R.string.import_total_success, tunnels.size()); + message = getResources().getQuantityString(R.plurals.import_total_success, + tunnels.size(), tunnels.size()); else if (!throwables.isEmpty()) - message = getString(R.string.import_partial_success, tunnels.size(), tunnels.size() + throwables.size()); + message = getResources().getQuantityString(R.plurals.import_partial_success, + tunnels.size() + throwables.size(), + tunnels.size(), tunnels.size() + throwables.size()); if (binding != null) { final CoordinatorLayout container = binding.mainContainer; |