aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/utils
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-11-15 21:08:42 +0100
committerChristian Schneppe <christian@pix-art.de>2018-11-15 21:08:42 +0100
commite05df83a2a3260f1b04c36ff270ea2c3f2b5a64c (patch)
treea9c27e9866bfc40b51624cbf7688c9a174a72e07 /src/main/java/de/pixart/messenger/utils
parent0bffe0ef9edc7b382da53d7518fa51ec995902c0 (diff)
do not show up navigation in start conversation screen if called with view intent
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils')
-rw-r--r--src/main/java/de/pixart/messenger/utils/AccountUtils.java8
1 files changed, 8 insertions, 0 deletions
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<Account> 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()) {