Search in sources :

Example 6 with ActivityResult

use of eu.siacs.conversations.ui.util.ActivityResult in project Conversations by siacs.

the class ChooseContactActivity method onActivityResult.

@Override
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
    super.onActivityResult(requestCode, requestCode, intent);
    ActivityResult activityResult = ActivityResult.of(requestCode, resultCode, intent);
    if (xmppConnectionService != null) {
        handleActivityResult(activityResult);
    } else {
        this.postponedActivityResult.push(activityResult);
    }
}
Also used : ActivityResult(eu.siacs.conversations.ui.util.ActivityResult)

Aggregations

ActivityResult (eu.siacs.conversations.ui.util.ActivityResult)6 SuppressLint (android.annotation.SuppressLint)1 Intent (android.content.Intent)1 IdRes (androidx.annotation.IdRes)1 Fragment (androidx.fragment.app.Fragment)1 Account (eu.siacs.conversations.entities.Account)1 Conversation (eu.siacs.conversations.entities.Conversation)1 OnBackendConnected (eu.siacs.conversations.ui.interfaces.OnBackendConnected)1