Search in sources :

Example 1 with ActorIntentFragmentActivity

use of im.actor.sdk.intents.ActorIntentFragmentActivity in project actor-platform by actorapp.

the class SecuritySettingsActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getSupportActionBar().setTitle(R.string.security_title);
    SecuritySettingsFragment fragment;
    ActorIntentFragmentActivity securitySettingsIntent = ActorSDK.sharedActor().getDelegate().getSecuritySettingsIntent();
    if (securitySettingsIntent != null) {
        fragment = (SecuritySettingsFragment) securitySettingsIntent.getFragment();
    } else {
        fragment = new SecuritySettingsFragment();
    }
    if (savedInstanceState == null) {
        showFragment(fragment, false);
    }
}
Also used : ActorIntentFragmentActivity(im.actor.sdk.intents.ActorIntentFragmentActivity)

Example 2 with ActorIntentFragmentActivity

use of im.actor.sdk.intents.ActorIntentFragmentActivity in project actor-platform by actorapp.

the class ChatSettingsActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getSupportActionBar().setTitle(R.string.settings_chat_title);
    ChatSettingsFragment fragment;
    ActorIntent chatSettingsIntent = ActorSDK.sharedActor().getDelegate().getChatSettingsIntent();
    if (chatSettingsIntent != null && chatSettingsIntent instanceof ActorIntentFragmentActivity) {
        fragment = (ChatSettingsFragment) ((ActorIntentFragmentActivity) chatSettingsIntent).getFragment();
    } else {
        fragment = new ChatSettingsFragment();
    }
    if (savedInstanceState == null) {
        showFragment(fragment, false);
    }
}
Also used : ActorIntentFragmentActivity(im.actor.sdk.intents.ActorIntentFragmentActivity) ActorIntent(im.actor.sdk.intents.ActorIntent)

Aggregations

ActorIntentFragmentActivity (im.actor.sdk.intents.ActorIntentFragmentActivity)2 ActorIntent (im.actor.sdk.intents.ActorIntent)1