From bcc01d771506857a0c5c92d84f32675a99840993 Mon Sep 17 00:00:00 2001 From: kor_ka Date: Wed, 21 Sep 2016 15:20:53 +0300 Subject: [PATCH] fix(android) wait for sdk is ready, enable video calls --- settings.gradle | 0 src/main/java/im/actor/cloud/MainActivity.java | 1 + src/main/java/im/actor/cloud/MessengerApplication.java | 1 + 3 files changed, 2 insertions(+) create mode 100644 settings.gradle diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..e69de29 diff --git a/src/main/java/im/actor/cloud/MainActivity.java b/src/main/java/im/actor/cloud/MainActivity.java index a03f838..d64cb70 100644 --- a/src/main/java/im/actor/cloud/MainActivity.java +++ b/src/main/java/im/actor/cloud/MainActivity.java @@ -10,6 +10,7 @@ public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + ActorSDK.sharedActor().waitForReady(); ActorSDK.sharedActor().startMessagingApp(this); finish(); } diff --git a/src/main/java/im/actor/cloud/MessengerApplication.java b/src/main/java/im/actor/cloud/MessengerApplication.java index 10c52d4..30ec395 100644 --- a/src/main/java/im/actor/cloud/MessengerApplication.java +++ b/src/main/java/im/actor/cloud/MessengerApplication.java @@ -7,6 +7,7 @@ public class MessengerApplication extends ActorSDKApplication { @Override public void onConfigureActorSDK() { ActorSDK.sharedActor().setCallsEnabled(true); + ActorSDK.sharedActor().setVideoCallsEnabled(true); ActorSDK.sharedActor().setFastShareEnabled(true); } }