Remove subtitles for the homepage IA
Remove the summary of the homepage IA if silky home enabled. Fixes: 170933968 Test: robotest & visual with turning on/off silky home Change-Id: I502b6590cece9b80e9923109fe0582cc4d9a1c56
This commit is contained in:
@@ -19,8 +19,10 @@ package com.android.settings.accounts;
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.FeatureFlagUtils;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.core.FeatureFlags;
|
||||
import com.android.settings.testutils.shadow.ShadowAuthenticationHelper;
|
||||
|
||||
import org.junit.After;
|
||||
@@ -51,6 +53,10 @@ public class TopLevelAccountEntryPreferenceControllerTest {
|
||||
@After
|
||||
public void tearDown() {
|
||||
ShadowAuthenticationHelper.reset();
|
||||
|
||||
if (FeatureFlagUtils.isEnabled(mContext, FeatureFlags.SILKY_HOME)) {
|
||||
FeatureFlagUtils.setEnabled(mContext, FeatureFlags.SILKY_HOME, false);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -76,4 +82,11 @@ public class TopLevelAccountEntryPreferenceControllerTest {
|
||||
// should only show the 2 accounts with labels
|
||||
assertThat(mController.getSummary()).isEqualTo(LABELS[0] + " and " + LABELS[1]);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getSummary_silkyHomeEnabled_shouldBeNull() {
|
||||
FeatureFlagUtils.setEnabled(mContext, FeatureFlags.SILKY_HOME, true);
|
||||
|
||||
assertThat(mController.getSummary()).isNull();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user