firstTime argument in onShowDialog method

This commit is contained in:
serso
2016-01-30 21:14:08 +01:00
parent 0170c3bb6a
commit a52bc5f5e4
3 changed files with 15 additions and 11 deletions

View File

@@ -167,11 +167,13 @@ public class EditVariableFragment extends BaseDialogFragment implements Calculat
@Override
protected void onShowDialog(@NonNull AlertDialog dialog) {
super.onShowDialog(dialog);
protected void onShowDialog(@NonNull AlertDialog dialog, boolean firstTime) {
super.onShowDialog(dialog, firstTime);
nameView.selectAll();
showIme(nameView);
if (firstTime) {
nameView.selectAll();
showIme(nameView);
}
final Button ok = dialog.getButton(AlertDialog.BUTTON_POSITIVE);
ok.setOnClickListener(new View.OnClickListener() {