SW remove unneeded code
This commit is contained in:
parent
cc532b9107
commit
02590ddd72
|
@ -42,20 +42,18 @@ public class SWPlugin extends SWItem {
|
|||
|
||||
ArrayList<PluginBase> pluginsInCategory = MainApp.getSpecificPluginsList(pType);
|
||||
|
||||
for (int row = 0; row < 1; row++) {
|
||||
radioGroup.setOrientation(LinearLayout.VERTICAL);
|
||||
radioGroup.setVisibility(View.VISIBLE);
|
||||
radioGroup.setOrientation(LinearLayout.VERTICAL);
|
||||
radioGroup.setVisibility(View.VISIBLE);
|
||||
|
||||
for (int i = 0; i < pluginsInCategory.size(); i++) {
|
||||
RadioButton rdbtn = new RadioButton(context);
|
||||
PluginBase p = pluginsInCategory.get(i);
|
||||
rdbtn.setId(View.generateViewId());
|
||||
rdbtn.setText(p.getName());
|
||||
if (p.isEnabled(pType))
|
||||
rdbtn.setChecked(true);
|
||||
rdbtn.setTag(p);
|
||||
radioGroup.addView(rdbtn);
|
||||
}
|
||||
for (int i = 0; i < pluginsInCategory.size(); i++) {
|
||||
RadioButton rdbtn = new RadioButton(context);
|
||||
PluginBase p = pluginsInCategory.get(i);
|
||||
rdbtn.setId(View.generateViewId());
|
||||
rdbtn.setText(p.getName());
|
||||
if (p.isEnabled(pType))
|
||||
rdbtn.setChecked(true);
|
||||
rdbtn.setTag(p);
|
||||
radioGroup.addView(rdbtn);
|
||||
}
|
||||
|
||||
radioGroup.setOnCheckedChangeListener((group, checkedId) -> {
|
||||
|
|
|
@ -44,14 +44,14 @@ public class SetupWizardActivity extends AppCompatActivity {
|
|||
SWScreen currentScreen = screens.get(currentWizardPage);
|
||||
|
||||
//Set screen name
|
||||
screenName = (TextView) findViewById(R.id.fullscreen_content);
|
||||
screenName = (TextView) findViewById(R.id.sw_content);
|
||||
screenName.setText(currentScreen.getHeader());
|
||||
|
||||
//Generate layout first
|
||||
LinearLayout layout = SWItem.generateLayout(this.findViewById(R.id.fullscreen_content_fields));
|
||||
LinearLayout layout = SWItem.generateLayout(this.findViewById(R.id.sw_content_fields));
|
||||
for (int i = 0; i < currentScreen.items.size(); i++) {
|
||||
SWItem currentItem = currentScreen.items.get(i);
|
||||
currentItem.generateDialog(this.findViewById(R.id.fullscreen_content_fields), layout);
|
||||
currentItem.generateDialog(this.findViewById(R.id.sw_content_fields), layout);
|
||||
}
|
||||
|
||||
updateButtons();
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
tools:context=".startupwizard.SetupWizardActivity">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/fullscreen_content"
|
||||
android:id="@+id/sw_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:keepScreenOn="true"
|
||||
|
@ -21,7 +21,7 @@
|
|||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/fullscreen_content_fields"
|
||||
android:id="@+id/sw_content_fields"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical|center_horizontal"
|
||||
|
@ -30,7 +30,7 @@
|
|||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/fullscreen_content_controls"
|
||||
android:id="@+id/sw_content_controls"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
|
|
Loading…
Reference in a new issue