Search in sources :

Example 6 with Secret

use of com.auth0.sharelock.Secret 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

Intent (android.content.Intent)3 Bundle (android.os.Bundle)3 RequestLinkEvent (com.auth0.sharelock.event.RequestLinkEvent)3 AlertDialog (android.app.AlertDialog)2 DialogInterface (android.content.DialogInterface)2 View (android.view.View)2 ImageView (android.widget.ImageView)2 TextView (android.widget.TextView)2 EventBus (de.greenrobot.event.EventBus)2 ClipData (android.content.ClipData)1 ClipboardManager (android.content.ClipboardManager)1 SharedPreferences (android.content.SharedPreferences)1 Uri (android.net.Uri)1 Handler (android.os.Handler)1 Toolbar (android.support.v7.widget.Toolbar)1 Editable (android.text.Editable)1 TextWatcher (android.text.TextWatcher)1 Secret (com.auth0.sharelock.Secret)1 NewLinkEvent (com.auth0.sharelock.event.NewLinkEvent)1 NewSecretEvent (com.auth0.sharelock.event.NewSecretEvent)1