[tor-commits] [orbot/master] Limited MOAT Solution Length to spec's 20 byte limit

n8fr8 at torproject.org n8fr8 at torproject.org
Mon Aug 24 21:02:51 UTC 2020


commit 9b3afa51bec3ad4124a569af521e63a022426c34
Author: bim <dsnake at protonmail.com>
Date:   Mon May 11 16:13:42 2020 -0400

    Limited MOAT Solution Length to spec's 20 byte limit
---
 app/src/main/res/layout/activity_moat.xml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/app/src/main/res/layout/activity_moat.xml b/app/src/main/res/layout/activity_moat.xml
index 432c4d42..c9d68d12 100644
--- a/app/src/main/res/layout/activity_moat.xml
+++ b/app/src/main/res/layout/activity_moat.xml
@@ -4,8 +4,8 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:orientation="vertical"
     android:background="@color/dark_purple"
+    android:orientation="vertical"
     tools:context=".ui.onboarding.MoatActivity">
 
     <com.google.android.material.appbar.AppBarLayout
@@ -29,7 +29,7 @@
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:orientation="vertical" >
+            android:orientation="vertical">
 
             <TextView
                 android:layout_width="match_parent"
@@ -67,7 +67,8 @@
                 android:ems="10"
                 android:hint="@string/enter_characters_from_image"
                 android:imeOptions="actionSend"
-                android:inputType="textShortMessage|text" />
+                android:inputType="textShortMessage|text"
+                android:maxLength="20" />
 
             <Button
                 android:id="@+id/requestBt"





More information about the tor-commits mailing list