rename show() to generateDialog()

This commit is contained in:
Roumen Georgiev 2018-04-25 15:34:07 +03:00
parent 7fb1b32188
commit ddf3c44928
4 changed files with 5 additions and 5 deletions

View file

@ -52,7 +52,7 @@ public class SWRadioButton extends SWItem {
return MainApp.sResources.getStringArray(valuesArray); return MainApp.sResources.getStringArray(valuesArray);
} }
public void show(View view){ public void generateDialog(View view){
Context context = view.getContext(); Context context = view.getContext();
// LinearLayout layout = (LinearLayout) new LinearLayout(context); // LinearLayout layout = (LinearLayout) new LinearLayout(context);
LinearLayout layout = (LinearLayout) view.findViewById(view.getId()); LinearLayout layout = (LinearLayout) view.findViewById(view.getId());

View file

@ -31,7 +31,7 @@ public class SWString extends SWItem {
public void setName(String name){ public void setName(String name){
this.groupName = name; this.groupName = name;
} }
public void show(View view) { public void generateDialog(View view) {
Context context = view.getContext(); Context context = view.getContext();
LinearLayout layout = (LinearLayout) view.findViewById(view.getId()); LinearLayout layout = (LinearLayout) view.findViewById(view.getId());
layout.removeAllViews(); layout.removeAllViews();

View file

@ -33,7 +33,7 @@ public class SWUrl extends SWItem {
this.groupName = name; this.groupName = name;
} }
public void show(View view) { public void generateDialog(View view) {
Context context = view.getContext(); Context context = view.getContext();
LinearLayout layout = (LinearLayout) view.findViewById(view.getId()); LinearLayout layout = (LinearLayout) view.findViewById(view.getId());
layout.removeAllViews(); layout.removeAllViews();

View file

@ -168,14 +168,14 @@ public class SetupWizardActivity extends AppCompatActivity {
SWRadioButton radioGroupItems = (SWRadioButton) currentItem; SWRadioButton radioGroupItems = (SWRadioButton) currentItem;
radioGroupItems.setName(currentScreen.getHeader()); radioGroupItems.setName(currentScreen.getHeader());
radioGroupItems.setOptions(radioGroupItems.labels(), radioGroupItems.values()); radioGroupItems.setOptions(radioGroupItems.labels(), radioGroupItems.values());
radioGroupItems.show(this.findViewById(R.id.fullscreen_content_fields)); radioGroupItems.generateDialog(this.findViewById(R.id.fullscreen_content_fields));
} }
if(labels.size() > 0){ if(labels.size() > 0){
// we have some labels lets display them // we have some labels lets display them
SWUrl swUrl = new SWUrl(); SWUrl swUrl = new SWUrl();
swUrl.setName(currentScreen.getHeader()); swUrl.setName(currentScreen.getHeader());
swUrl.setOptions(labels, comments); swUrl.setOptions(labels, comments);
swUrl.show(this.findViewById(R.id.fullscreen_content_fields)); swUrl.generateDialog(this.findViewById(R.id.fullscreen_content_fields));
} }
} }