Search in sources :

Example 1 with LinkFragment

use of com.auth0.sharelock.fragment.LinkFragment in project sharelock-android by auth0.

the class ComposeActivity method onEvent.

public void onEvent(AllowedViewersModifiedEvent event) {
    secret.replaceAllowedViewers(event.getViewers());
    final LinkFragment fragment = new LinkFragment();
    Bundle arguments = new Bundle();
    arguments.putParcelable(LinkFragment.LINK_FRAGMENT_SECRET_ARGUMENT, secret);
    fragment.setArguments(arguments);
    getSupportFragmentManager().beginTransaction().setCustomAnimations(android.R.anim.slide_in_left, android.R.anim.slide_out_right, android.R.anim.slide_in_left, android.R.anim.slide_out_right).replace(R.id.sharelock_compose_container, fragment).addToBackStack("Link Step").commit();
    bus.post(new RequestLinkEvent(secret));
}
Also used : Bundle(android.os.Bundle) LinkFragment(com.auth0.sharelock.fragment.LinkFragment) RequestLinkEvent(com.auth0.sharelock.event.RequestLinkEvent)

Aggregations

Bundle (android.os.Bundle)1 RequestLinkEvent (com.auth0.sharelock.event.RequestLinkEvent)1 LinkFragment (com.auth0.sharelock.fragment.LinkFragment)1