Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Commit

Permalink
fix(android) wait for sdk is ready, enable video calls
Browse files Browse the repository at this point in the history
  • Loading branch information
kor_ka committed Sep 21, 2016
1 parent 90af35f commit bcc01d7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
Empty file added settings.gradle
Empty file.
1 change: 1 addition & 0 deletions src/main/java/im/actor/cloud/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/im/actor/cloud/MessengerApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit bcc01d7

Please sign in to comment.