|
29 | 29 | import android.os.Build;
|
30 | 30 | import android.os.Bundle;
|
31 | 31 | import android.os.Handler;
|
| 32 | +import android.support.design.widget.FloatingActionButton; |
32 | 33 | import android.support.v4.app.ActionBarDrawerToggle;
|
33 | 34 | import android.support.v4.app.FragmentManager;
|
34 | 35 | import android.support.v4.app.FragmentTransaction;
|
|
61 | 62 | import com.j256.ormlite.android.AndroidDatabaseResults;
|
62 | 63 | import com.zulip.android.BuildConfig;
|
63 | 64 | import com.zulip.android.database.DatabaseHelper;
|
64 |
| -<<<<<<< 570cc3a5e10b8fa1d614fb8f139261a05897c3a7 |
65 | 65 | import com.zulip.android.models.Emoji;
|
66 |
| -======= |
67 | 66 | import com.zulip.android.filters.NarrowFilterToday;
|
68 |
| ->>>>>>> Filter by today's messages |
69 | 67 | import com.zulip.android.models.Message;
|
70 | 68 | import com.zulip.android.models.MessageType;
|
71 | 69 | import com.zulip.android.filters.NarrowFilter;
|
@@ -112,6 +110,8 @@ public class ZulipActivity extends AppCompatActivity implements
|
112 | 110 | private DrawerLayout drawerLayout;
|
113 | 111 | private ActionBarDrawerToggle drawerToggle;
|
114 | 112 | ExpandableListView streamsDrawer;
|
| 113 | + private LinearLayout chatBox; |
| 114 | + private FloatingActionButton fab; |
115 | 115 |
|
116 | 116 | private HashMap<String, Bitmap> gravatars = new HashMap<>();
|
117 | 117 |
|
@@ -390,6 +390,7 @@ public void onClick(View v) {
|
390 | 390 | streamActv.setAdapter(streamActvAdapter);
|
391 | 391 | topicActv.setAdapter(subjectActvAdapter);
|
392 | 392 | checkAndSetupStreamsDrawer();
|
| 393 | +<<<<<<< a44f4687bd03950b07becf52be5222d106af8588 |
393 | 394 | SimpleCursorAdapter combinedAdapter = new SimpleCursorAdapter(
|
394 | 395 | that, R.layout.emoji_tile, null,
|
395 | 396 | new String[]{Emoji.NAME_FIELD, Emoji.NAME_FIELD},
|
@@ -487,8 +488,15 @@ private Cursor makePeopleNameCursor(CharSequence name) throws SQLException {
|
487 | 488 | + Person.NAME_FIELD + " COLLATE NOCASE",
|
488 | 489 | DatabaseHelper.likeEscape(name.toString()) + "%")
|
489 | 490 | .closeableIterator().getRawResults()).getRawCursor();
|
| 491 | +======= |
| 492 | + setupFab(); |
| 493 | +>>>>>>> Implement Floating ActionButton |
490 | 494 | }
|
491 | 495 |
|
| 496 | + private void setupFab() { |
| 497 | + fab = (FloatingActionButton) findViewById(R.id.fab); |
| 498 | + chatBox = (LinearLayout) findViewById(R.id.messageBoxContainer); |
| 499 | + } |
492 | 500 | public void setupListViewAdapter() {
|
493 | 501 | ExpandableStreamDrawerAdapter streamsDrawerAdapter = null;
|
494 | 502 | Callable<Cursor> streamsGenerator = new Callable<Cursor>() {
|
|
0 commit comments