[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [snowflake-mobile/master] Extracted string resouce from user served text view



commit 4b8579aab933b2eb2a2e841cd072a20523d70270
Author: Hashik Donthineni <HashikDonthineni@xxxxxxxxx>
Date:   Sat Jul 11 03:03:44 2020 +0530

    Extracted string resouce from user served text view
---
 app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java | 2 +-
 app/src/main/res/values/strings.xml                                    | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

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 6841be3..be71745 100644
--- a/app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java
+++ b/app/src/main/java/org/torproject/snowflake/fragments/MainFragment.java
@@ -81,7 +81,7 @@ public class MainFragment extends Fragment {
 
         if(served > 0){
             usersServedTV.setVisibility(View.VISIBLE);
-            usersServedTV.setText("Users you have helped circumvent censorship in the past day \n" + served);
+            usersServedTV.setText(getString(R.string.users_served_text) + served);
         }
     }
 }
\ 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 6855572..68b36a1 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -7,4 +7,5 @@
     <string name="not_channel_name">Snowflake Service</string>
     <string name="users_served">users_served</string>
     <string name="served_date">date</string>
+    <string name="users_served_text">Users you have helped circumvent censorship in the past day \n</string>
 </resources>



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits