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 1010import android .util .Log ;
1111import android .util .Patterns ;
1212import android .view .View ;
13+ import android .widget .Button ;
1314import android .widget .CheckBox ;
1415import android .widget .CompoundButton ;
1516import android .widget .EditText ;
17+ import android .widget .TextView ;
1618import android .widget .Toast ;
1719
1820import com .google .android .gms .auth .api .Auth ;
@@ -70,6 +72,11 @@ protected void onCreate(Bundle savedInstanceState) {
7072 mUserName = (EditText ) findViewById (R .id .username );
7173 mPassword = (EditText ) findViewById (R .id .password );
7274 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+ }
7380 }
7481
7582 @ Override
Original file line number Diff line number Diff line change 7272 <string name =" realm_add" >Add Realm</string >
7373 <string name =" realm_name" >Name of a realm (Optional)</string >
7474 <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 >
7677</resources >
You can’t perform that action at this time.
0 commit comments