@Override public void execute() { final DialogBox db = new DialogBox(false, true); db.setText("About MIT App Inventor"); db.setStyleName("ode-DialogBox"); db.setHeight("200px"); db.setWidth("400px"); db.setGlassEnabled(true); db.setAnimationEnabled(true); db.center(); VerticalPanel DialogBoxContents = new VerticalPanel(); HTML message = new HTML( MESSAGES.gitBuildId(GitBuildId.getDate(), GitBuildId.getVersion()) + "<BR/>Use Companion: " + BlocklyPanel.getCompVersion() + "<BR/><BR/>Please see " + RELEASE_NOTES_LINK_AND_TEXT + "<BR/><BR/>" + termsOfServiceText); SimplePanel holder = new SimplePanel(); // holder.setStyleName("DialogBox-footer"); Button ok = new Button("Close"); ok.addClickListener( new ClickListener() { public void onClick(Widget sender) { db.hide(); } }); holder.add(ok); DialogBoxContents.add(message); DialogBoxContents.add(holder); db.setWidget(DialogBoxContents); db.show(); }
public void onCreate() { super.onCreate(); thisInstance = this; String str = GitBuildId.getAcraUri(); if (str.equals("")) { Log.i("ReplApplication", "ACRA Not Active"); return; } Log.i("ReplApplication", "ACRA Active, URI = " + str); ACRAConfiguration localACRAConfiguration = ACRA.getNewDefaultConfig(this); localACRAConfiguration.setFormUri(str); localACRAConfiguration.setDisableSSLCertValidation(true); ACRA.setConfig(localACRAConfiguration); ACRA.init(this); this.active = true; }