This repository was archived by the owner on Jul 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed
java/com/zulip/android/activities Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 13
13
import android .util .Log ;
14
14
import android .util .Patterns ;
15
15
import android .view .View ;
16
+ import android .widget .Button ;
17
+ import android .widget .CheckBox ;
18
+ import android .widget .CompoundButton ;
16
19
import android .widget .EditText ;
20
+ import android .widget .TextView ;
17
21
import android .widget .Toast ;
18
22
19
23
import com .google .android .gms .auth .api .Auth ;
@@ -107,6 +111,11 @@ private void showLoginFields() {
107
111
AnimationHelper .showView (findViewById (R .id .serverInput ), 201 );
108
112
AnimationHelper .hideView (findViewById (R .id .serverFieldLayout ), 100 );
109
113
realmNameET = (EditText ) findViewById (R .id .realmName );
114
+ if (getIntent ().getBooleanExtra ("FROM_ADDREALM" , false )) {
115
+ startedFromAddRealm = true ;
116
+ ((TextView ) findViewById (R .id .welcome_zulip )).setText (R .string .add_realm );
117
+ ((Button ) findViewById (R .id .zulip_login )).setText (R .string .add_realm_login );
118
+ }
110
119
}
111
120
112
121
@ Override
Original file line number Diff line number Diff line change 26
26
android : layout_marginTop =" 16dp"
27
27
android : gravity =" center|center_horizontal"
28
28
android : padding =" 10dp"
29
+ android : id =" @+id/welcome_zulip"
29
30
android : text =" @string/login_welcome_blurb"
30
31
android : textAppearance =" ?android:attr/textAppearanceLarge" />
31
32
Original file line number Diff line number Diff line change 20
20
android : layout_marginTop =" 16dp"
21
21
android : gravity =" center|center_horizontal"
22
22
android : padding =" 10dp"
23
+ android : id =" @+id/welcome_zulip"
23
24
android : text =" @string/login_welcome_blurb"
24
25
android : textAppearance =" ?android:attr/textAppearanceLarge" />
25
26
Original file line number Diff line number Diff line change 82
82
<string name =" realm_add" >Add Realm</string >
83
83
<string name =" realm_name" >Name of a realm (Optional)</string >
84
84
<string name =" realm_exists" >Realm Name already exists, please change.</string >
85
-
85
+ <string name =" add_realm" >Add new Realm</string >
86
+ <string name =" add_realm_login" >Add</string >
86
87
</resources >
You can’t perform that action at this time.
0 commit comments