MCPcopy Create free account
hub / github.com/XCSoar/XCSoar / run

Method run

android/src/TextEntryDialog.java:72–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 }
71
72 @Override
73 public void run() {
74 builder.setPositiveButton("OK", new DialogInterface.OnClickListener() {
75 @Override
76 public void onClick(DialogInterface dialog, int which) {
77 onResult(ptr, input.getText().toString());
78 dialog.dismiss();
79 }
80 });
81
82 builder.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
83 @Override
84 public void onClick(DialogInterface dialog, int which) {
85 dialog.cancel();
86 }
87 });
88
89 dialog = builder.create();
90 builder = null;
91
92 input.requestFocus();
93
94 // show the keyboard initially
95 dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
96
97 dialog.setOnCancelListener(this);
98 dialog.show();
99 }
100
101 @Override
102 public void close() {

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected