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);
}
}
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);
}
}
Aggregations