Updates the padding of the reset button to meet for SetupWizard style.
Goals: Call the function LayoutStyler#applyPartnerCustomizationLayoutPaddingStyle to dynamically adjust the padding of the view. Bug: 231511522 Test: manual test Change-Id: Idd4a00c004eca8ec9699edeabe85bbee4bd49af9
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.android.settings.accessibility;
|
||||
|
||||
import static com.android.settings.accessibility.TextReadingPreferenceFragment.RESET_KEY;
|
||||
|
||||
import static org.mockito.Mockito.doReturn;
|
||||
import static org.mockito.Mockito.spy;
|
||||
import static org.mockito.Mockito.verify;
|
||||
@@ -25,6 +27,7 @@ import android.content.Context;
|
||||
import androidx.test.core.app.ApplicationProvider;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settingslib.widget.LayoutPreference;
|
||||
|
||||
import com.google.android.setupdesign.GlifPreferenceLayout;
|
||||
|
||||
@@ -51,6 +54,9 @@ public class TextReadingPreferenceFragmentForSetupWizardTest {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
|
||||
mFragment = spy(new TextReadingPreferenceFragmentForSetupWizard());
|
||||
final LayoutPreference resetPreference =
|
||||
new LayoutPreference(mContext, R.layout.accessibility_text_reading_reset_button);
|
||||
doReturn(resetPreference).when(mFragment).findPreference(RESET_KEY);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user