rename show() to generateDialog()
This commit is contained in:
parent
7fb1b32188
commit
ddf3c44928
|
@ -52,7 +52,7 @@ public class SWRadioButton extends SWItem {
|
|||
return MainApp.sResources.getStringArray(valuesArray);
|
||||
}
|
||||
|
||||
public void show(View view){
|
||||
public void generateDialog(View view){
|
||||
Context context = view.getContext();
|
||||
// LinearLayout layout = (LinearLayout) new LinearLayout(context);
|
||||
LinearLayout layout = (LinearLayout) view.findViewById(view.getId());
|
||||
|
|
|
@ -31,7 +31,7 @@ public class SWString extends SWItem {
|
|||
public void setName(String name){
|
||||
this.groupName = name;
|
||||
}
|
||||
public void show(View view) {
|
||||
public void generateDialog(View view) {
|
||||
Context context = view.getContext();
|
||||
LinearLayout layout = (LinearLayout) view.findViewById(view.getId());
|
||||
layout.removeAllViews();
|
||||
|
|
|
@ -33,7 +33,7 @@ public class SWUrl extends SWItem {
|
|||
this.groupName = name;
|
||||
}
|
||||
|
||||
public void show(View view) {
|
||||
public void generateDialog(View view) {
|
||||
Context context = view.getContext();
|
||||
LinearLayout layout = (LinearLayout) view.findViewById(view.getId());
|
||||
layout.removeAllViews();
|
||||
|
|
|
@ -168,14 +168,14 @@ public class SetupWizardActivity extends AppCompatActivity {
|
|||
SWRadioButton radioGroupItems = (SWRadioButton) currentItem;
|
||||
radioGroupItems.setName(currentScreen.getHeader());
|
||||
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){
|
||||
// we have some labels lets display them
|
||||
SWUrl swUrl = new SWUrl();
|
||||
swUrl.setName(currentScreen.getHeader());
|
||||
swUrl.setOptions(labels, comments);
|
||||
swUrl.show(this.findViewById(R.id.fullscreen_content_fields));
|
||||
swUrl.generateDialog(this.findViewById(R.id.fullscreen_content_fields));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue