diff options
| author | pastychang <pastychang@google.com> | 2018-12-26 10:46:40 +0800 |
|---|---|---|
| committer | pastychang <pastychang@google.com> | 2018-12-26 14:56:44 +0800 |
| commit | 908501e40ff873f11665241ff49e48e87105f28f (patch) | |
| tree | a2704b7e52d23fc87db16287ed7ccb9e317045a7 /src/com/android/settings/EncryptionInterstitial.java | |
| parent | 2fe6673d9ed0d0998be6382d06c0f3c827a16139 (diff) | |
| download | packages_apps_Settings-908501e40ff873f11665241ff49e48e87105f28f.tar.gz packages_apps_Settings-908501e40ff873f11665241ff49e48e87105f28f.tar.bz2 packages_apps_Settings-908501e40ff873f11665241ff49e48e87105f28f.zip | |
Apply FooterButton builder
FotterButton constructor in setupcompat will be deprecated, change to
use builder.
Bug: 120805516
Test: RunSettingsRoboTests
Change-Id: Ic84b0c91205bf3c770bc658e8eaf2626e4d7bddd
Diffstat (limited to 'src/com/android/settings/EncryptionInterstitial.java')
| -rw-r--r-- | src/com/android/settings/EncryptionInterstitial.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/com/android/settings/EncryptionInterstitial.java b/src/com/android/settings/EncryptionInterstitial.java index a524a66f3e..656b18c391 100644 --- a/src/com/android/settings/EncryptionInterstitial.java +++ b/src/com/android/settings/EncryptionInterstitial.java @@ -152,21 +152,21 @@ public class EncryptionInterstitial extends SettingsActivity { final ButtonFooterMixin buttonFooterMixin = layout.getMixin(ButtonFooterMixin.class); buttonFooterMixin.setSecondaryButton( - new FooterButton( - getContext(), - R.string.encryption_interstitial_no, - this::onNoButtonClicked, - FooterButton.ButtonType.SKIP, - R.style.SuwGlifButton_Secondary) + new FooterButton.Builder(getContext()) + .setText(R.string.encryption_interstitial_no) + .setListener(this::onNoButtonClicked) + .setButtonType(FooterButton.ButtonType.SKIP) + .setTheme(R.style.SuwGlifButton_Secondary) + .build() ); buttonFooterMixin.setPrimaryButton( - new FooterButton( - getContext(), - R.string.encryption_interstitial_yes, - this::onYesButtonClicked, - FooterButton.ButtonType.NEXT, - R.style.SuwGlifButton_Primary) + new FooterButton.Builder(getContext()) + .setText(R.string.encryption_interstitial_yes) + .setListener(this::onYesButtonClicked) + .setButtonType(FooterButton.ButtonType.NEXT) + .setTheme(R.style.SuwGlifButton_Primary) + .build() ); } |
