[tor-commits] [snowflake-mobile/master] Changed the Users Served text

cohosh at torproject.org cohosh at torproject.org
Mon Aug 10 16:49:27 UTC 2020


commit 3d466477ad3fc0b18184d748ae1367aaa1b7715e
Author: Hashik Donthineni <HashikDonthineni at gmail.com>
Date:   Thu Aug 6 19:02:34 2020 +0530

    Changed the Users Served text
---
 app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java | 3 ++-
 app/src/main/res/values/strings.xml                                    | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java b/app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java
index 796debd..c15b7ac 100644
--- a/app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java
+++ b/app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java
@@ -80,7 +80,8 @@ public class MainFragment extends Fragment {
 
         if (served > 0) {
             usersServedTV.setVisibility(View.VISIBLE);
-            usersServedTV.setText(getString(R.string.users_served_text) + served);
+            String servedText = getString(R.string.users_served_text) + served;
+            usersServedTV.setText(servedText);
         }
     }
 }
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 876b7f6..7faf436 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -2,7 +2,7 @@
     <string name="app_name">Snowflake</string>
     <string name="not_channel_desc">This Channel should not be muted. The Android system will consider Snowflake not import and will kill the service if it\'s muted.</string>
     <string name="not_channel_name">Snowflake Service</string>
-    <string name="users_served_text">Users you have helped circumvent censorship in the past day \n</string>
+    <string name="users_served_text">Number of users your Snowflake has helped circumvent censorship in the last 24 hours: $</string>
     <string name="Snowflake_Off">Snowflake is Off</string>
     <string name="Snowflake_On">Snowflake is On</string>
 </resources>





More information about the tor-commits mailing list