Back to project page KeepMySecret.
The source code is released under:
GNU General Public License
If you think the Android project KeepMySecret listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package keepmysecretapp.app.com.keepmysecretapp.types; // w w w. j av a 2s . com import android.app.Activity; import android.app.FragmentManager; import android.view.View; import android.widget.EditText; import keepmysecretapp.app.com.keepmysecretapp.fragments.dialogs.GeneratePasswordDialog; public class GenerateButtonListener implements View.OnClickListener { private EditText fieldToUpd; private GeneratePasswordDialog dlg; private FragmentManager context; public GenerateButtonListener(EditText field, FragmentManager context) { this.fieldToUpd = field; this.context = context; } @Override public void onClick(View v) { this.dlg = GeneratePasswordDialog.newInstance(fieldToUpd); this.dlg.show(context, "GeneratePasswordDialog"); } }