mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 09:27:54 +00:00
lazily initialize emoji drawer
Saves a good amount of inflation time in onCreate for new conversations. Closes #2585 Closes #2636 // FREEBIE
This commit is contained in:

committed by
Moxie Marlinspike

parent
a625727853
commit
9f804047f5
@@ -122,11 +122,10 @@
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<org.thoughtcrime.securesms.components.EmojiDrawer
|
||||
android:id="@+id/emoji_drawer"
|
||||
android:visibility="gone"
|
||||
android:layout_weight="1.1"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
<ViewStub android:id="@+id/emoji_drawer_stub"
|
||||
android:inflatedId="@+id/emoji_drawer"
|
||||
android:layout="@layout/emoji_drawer_stub"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
||||
|
6
res/layout/emoji_drawer_stub.xml
Normal file
6
res/layout/emoji_drawer_stub.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<org.thoughtcrime.securesms.components.EmojiDrawer
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1.1" />
|
Reference in New Issue
Block a user