From 20f15c02a630d7abb6935418136bd5c6ab109231 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 16 Dec 2017 23:15:58 +0100 Subject: fix init EmojiService in StartConversationActivity --- .../java/de/pixart/messenger/ui/StartConversationActivity.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java index 545be67d1..23bdc056b 100644 --- a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java +++ b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java @@ -79,6 +79,8 @@ import de.pixart.messenger.xmpp.XmppConnection; import de.pixart.messenger.xmpp.jid.InvalidJidException; import de.pixart.messenger.xmpp.jid.Jid; +import static de.pixart.messenger.ui.SettingsActivity.USE_BUNDLED_EMOJIS; + public class StartConversationActivity extends XmppActivity implements OnRosterUpdate, OnUpdateBlocklist { private final int REQUEST_SYNC_CONTACTS = 0x3b28cf; @@ -270,7 +272,7 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - new EmojiService(this).init(); + new EmojiService(this).init(useBundledEmoji()); setContentView(R.layout.activity_start_conversation); mViewPager = findViewById(R.id.start_conversation_view_pager); ActionBar actionBar = getActionBar(); @@ -1190,4 +1192,8 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU return false; } } + + public boolean useBundledEmoji() { + return getPreferences().getBoolean(USE_BUNDLED_EMOJIS, getResources().getBoolean(R.bool.use_bundled_emoji)); + } } -- cgit v1.2.3