From e05df83a2a3260f1b04c36ff270ea2c3f2b5a64c Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Thu, 15 Nov 2018 21:08:42 +0100 Subject: do not show up navigation in start conversation screen if called with view intent --- src/main/java/de/pixart/messenger/utils/AccountUtils.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main/java/de/pixart/messenger/utils') diff --git a/src/main/java/de/pixart/messenger/utils/AccountUtils.java b/src/main/java/de/pixart/messenger/utils/AccountUtils.java index 430ebb573..d675ed680 100644 --- a/src/main/java/de/pixart/messenger/utils/AccountUtils.java +++ b/src/main/java/de/pixart/messenger/utils/AccountUtils.java @@ -29,6 +29,14 @@ public class AccountUtils { return null; } + public static Account getFirst(XmppConnectionService service) { + final List accounts = service.getAccounts(); + for (Account account : accounts) { + return account; + } + return null; + } + public static Account getPendingAccount(XmppConnectionService service) { Account pending = null; for (Account account : service.getAccounts()) { -- cgit v1.2.3