Introduce SecurityPatchLevelDialogController
- Create a controller to display data and handle user input for the security patch level field in FirmwareVersionDialogFragment Bug: 36458278 Test: make RunSettingsRoboTests -j40 Change-Id: I4ca93d9b0e74a5eaf5746704d46de42f5ae27224
This commit is contained in:
@@ -69,6 +69,13 @@ public class FirmwareVersionDialogFragment extends InstrumentedDialogFragment {
|
||||
}
|
||||
}
|
||||
|
||||
public void removeSettingFromScreen(int viewId) {
|
||||
final View view = mRootView.findViewById(viewId);
|
||||
if (view != null) {
|
||||
view.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
public void registerClickListener(int viewId, View.OnClickListener listener) {
|
||||
final View view = mRootView.findViewById(viewId);
|
||||
if (view != null) {
|
||||
@@ -78,5 +85,6 @@ public class FirmwareVersionDialogFragment extends InstrumentedDialogFragment {
|
||||
|
||||
private void initializeControllers() {
|
||||
new FirmwareVersionDialogController(this).initialize();
|
||||
new SecurityPatchLevelDialogController(this).initialize();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user