Rename ButtonFooterMixin to FooterBarMixin
1. Change to FooterBarMixin 2. Move FooterButton to the same package with FooterBarMixin Bug: 120805516 Test: RunSettingsRoboTests Change-Id: Ic6937e3cbc515dd7bf877c9193932cd5800ac801
This commit is contained in:
@@ -45,9 +45,9 @@ import com.android.settings.enterprise.ActionDisabledByAdminDialogHelper;
|
||||
import com.android.settingslib.RestrictedLockUtilsInternal;
|
||||
|
||||
import com.google.android.setupcompat.TemplateLayout;
|
||||
import com.google.android.setupcompat.item.FooterButton;
|
||||
import com.google.android.setupcompat.item.FooterButton.ButtonType;
|
||||
import com.google.android.setupcompat.template.ButtonFooterMixin;
|
||||
import com.google.android.setupcompat.template.FooterBarMixin;
|
||||
import com.google.android.setupcompat.template.FooterButton;
|
||||
import com.google.android.setupcompat.template.FooterButton.ButtonType;
|
||||
|
||||
/**
|
||||
* Confirm and execute a reset of the device to a clean "just out of the box"
|
||||
@@ -154,8 +154,8 @@ public class MasterClearConfirm extends InstrumentedFragment {
|
||||
private void establishFinalConfirmationState() {
|
||||
final TemplateLayout layout = mContentView.findViewById(R.id.setup_wizard_layout);
|
||||
|
||||
final ButtonFooterMixin buttonFooterMixin = layout.getMixin(ButtonFooterMixin.class);
|
||||
buttonFooterMixin.setPrimaryButton(
|
||||
final FooterBarMixin mixin = layout.getMixin(FooterBarMixin.class);
|
||||
mixin.setPrimaryButton(
|
||||
new FooterButton.Builder(getActivity())
|
||||
.setText(R.string.master_clear_button_text)
|
||||
.setListener(mFinalClickListener)
|
||||
|
Reference in New Issue
Block a user