Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 5bb82bb

Browse files
committed
Added server Url, realmName editText to the login Activity
1 parent e942847 commit 5bb82bb

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

app/src/main/java/com/zulip/android/LoginActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public class LoginActivity extends Activity implements View.OnClickListener,
3131
private static final int REQUEST_ACCOUNT_PICKER = 2;
3232
private static final int REQUEST_CODE_RESOLVE_ERR = 9000;
3333

34+
EditText serverUrlText;
35+
EditText realmNameET;
3436
LoginActivity that = this; // self-ref
3537
ZulipApp app;
3638

@@ -43,6 +45,8 @@ protected void onCreate(Bundle savedInstanceState) {
4345
app = (ZulipApp) getApplicationContext();
4446

4547
setContentView(R.layout.login);
48+
realmNameET = (EditText) findViewById(R.id.realmName);
49+
serverUrlText = (EditText) findViewById(R.id.server);
4650

4751
((Button) findViewById(R.id.login))
4852
.setOnClickListener(new View.OnClickListener() {

app/src/main/res/layout/login.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@
3636
android:hint="@string/password"
3737
android:inputType="textPassword" />
3838

39+
<EditText
40+
android:id="@+id/server"
41+
android:layout_width="match_parent"
42+
android:layout_height="wrap_content"
43+
android:hint="@string/server_address" />
44+
45+
<EditText
46+
android:id="@+id/realmName"
47+
android:layout_width="match_parent"
48+
android:layout_height="wrap_content"
49+
android:hint="@string/realm_name" />
3950
<Button
4051
android:id="@+id/login"
4152
style="android:buttonStyle"

0 commit comments

Comments
 (0)