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

[tor-commits] [orbot/master] small changes for showing snowflake activation



commit 65d8ca303116e422012ebb75f32c808819d756da
Author: n8fr8 <nathan@xxxxxxxxxxxxxxxxxxxx>
Date:   Thu Jun 17 17:15:52 2021 -0400

    small changes for showing snowflake activation
---
 .../java/org/torproject/android/OrbotMainActivity.java     | 14 ++++++++++++--
 app/src/main/res/layout/layout_main.xml                    |  4 ++--
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/app/src/main/java/org/torproject/android/OrbotMainActivity.java b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
index 6a351e5d..aff0f2b2 100644
--- a/app/src/main/java/org/torproject/android/OrbotMainActivity.java
+++ b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
@@ -941,7 +941,18 @@ public class OrbotMainActivity extends AppCompatActivity implements OrbotConstan
                 mBtnStart.setText(R.string.menu_stop);
                 mPulsator.stop();
 
-                lblStatus.setText(getString(R.string.status_activated));
+                if (Prefs.beSnowflakeProxy())
+                {
+                    lblStatus.setText(getString(R.string.status_activated)+"\n"
+                    + "â??â??You are a snowflakeâ??â??");
+
+                }
+                else
+                {
+                    lblStatus.setText(getString(R.string.status_activated));
+
+                }
+
 
                 if (autoStartFromIntent) {
                     autoStartFromIntent = false;
@@ -958,7 +969,6 @@ public class OrbotMainActivity extends AppCompatActivity implements OrbotConstan
                     setResult(RESULT_OK, resultIntent);
 
                     finish();
-                    Log.d(TAG, "autoStartFromIntent finish");
                 }
 
                 break;
diff --git a/app/src/main/res/layout/layout_main.xml b/app/src/main/res/layout/layout_main.xml
index dd0fc7cc..e8eba5eb 100644
--- a/app/src/main/res/layout/layout_main.xml
+++ b/app/src/main/res/layout/layout_main.xml
@@ -82,8 +82,8 @@
                     android:ellipsize="end"
                     android:fontFamily="sans-serif-light"
                     android:gravity="center"
-                    android:lines="1"
-                    android:maxLines="1"
+                    android:lines="2"
+                    android:maxLines="2"
                     android:text="[             ]"
                     android:textSize="14sp" />
 



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