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

Commit 9589db4

Browse files
kunall17niftynei
authored andcommitted
Select stream on drawer click
Selects the stream in the AutoCompleteTextView from item clicked in the drawer menu.
1 parent 99c787d commit 9589db4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/java/com/zulip/android/activities/ZulipActivity.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,10 @@ public void onItemClick(AdapterView<?> parent, View view,
371371
int position, long id) {
372372
// TODO: is there a way to get the Stream from the adapter
373373
// without re-querying it?
374-
narrow(Stream.getById(app, (int) id));
374+
Stream stream = Stream.getById(app, (int) id);
375+
narrow(stream);
376+
streamActv.setText(stream.getName());
377+
topicActv.setText("");
375378
}
376379
});
377380

0 commit comments

Comments
 (0)