This repository was archived by the owner on Jul 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
java/com/zulip/android/activities Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 10
10
import android .util .Log ;
11
11
import android .util .Patterns ;
12
12
import android .view .View ;
13
+ import android .widget .Button ;
13
14
import android .widget .CheckBox ;
14
15
import android .widget .CompoundButton ;
15
16
import android .widget .EditText ;
17
+ import android .widget .TextView ;
16
18
import android .widget .Toast ;
17
19
18
20
import com .google .android .gms .auth .api .Auth ;
@@ -70,6 +72,11 @@ protected void onCreate(Bundle savedInstanceState) {
70
72
mUserName = (EditText ) findViewById (R .id .username );
71
73
mPassword = (EditText ) findViewById (R .id .password );
72
74
realmNameET = (EditText ) findViewById (R .id .realmName );
75
+ if (getIntent ().getBooleanExtra ("FROM_ADDREALM" , false )) {
76
+ startedFromAddRealm = true ;
77
+ ((TextView ) findViewById (R .id .textView1 )).setText (R .string .add_realm );
78
+ ((Button ) findViewById (R .id .zulip_login )).setText (R .string .add_realm_login );
79
+ }
73
80
}
74
81
75
82
@ Override
Original file line number Diff line number Diff line change 72
72
<string name =" realm_add" >Add Realm</string >
73
73
<string name =" realm_name" >Name of a realm (Optional)</string >
74
74
<string name =" realm_exists" >Realm Name already exists, please change.</string >
75
-
75
+ <string name =" add_realm" >Add new Realm</string >
76
+ <string name =" add_realm_login" >Add</string >
76
77
</resources >
You can’t perform that action at this time.
0 commit comments