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

Commit 99ae2a3

Browse files
kunall17niftynei
authored andcommitted
Always show AppBarLayout onNarrow
1 parent 5974fa7 commit 99ae2a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ public class ZulipActivity extends AppCompatActivity implements
151151
private SimpleCursorAdapter streamActvAdapter;
152152
private SimpleCursorAdapter subjectActvAdapter;
153153
private SimpleCursorAdapter emailActvAdapter;
154+
private AppBarLayout appBarLayout;
154155

155156
private BroadcastReceiver onGcmMessage = new BroadcastReceiver() {
156157
public void onReceive(Context contenxt, Intent intent) {
@@ -289,6 +290,7 @@ protected void onCreate(Bundle savedInstanceState) {
289290
messageEt = (AutoCompleteTextView) findViewById(R.id.message_et);
290291
textView = (TextView) findViewById(R.id.textView);
291292
sendBtn = (ImageView) findViewById(R.id.send_btn);
293+
appBarLayout = (AppBarLayout) findViewById(R.id.appBarLayout);
292294
app.setZulipActivity(this);
293295
togglePrivateStreamBtn = (ImageView) findViewById(R.id.togglePrivateStream_btn);
294296
mutedTopics = new ArrayList<>();
@@ -1193,6 +1195,7 @@ public void doNarrow(NarrowFilter filter) {
11931195
// Push to the back stack if we are not already narrowed
11941196
pushListFragment(narrowedList, NARROW);
11951197
narrowedList.onReadyToDisplay(true);
1198+
showView(appBarLayout);
11961199
}
11971200

11981201
@Override

0 commit comments

Comments
 (0)