Fix two intro strings for Magnification page during Suw
- Keep the SuW intro and hide the setting intro Bug: 220025399 Test: Manual testing Change-Id: Ie4e9eace8dbd638bd141c14a22603644d93d458a
This commit is contained in:
@@ -78,6 +78,7 @@ import java.util.Locale;
|
||||
public abstract class ToggleFeaturePreferenceFragment extends SettingsPreferenceFragment
|
||||
implements ShortcutPreference.OnClickCallback, OnMainSwitchChangeListener {
|
||||
|
||||
protected TopIntroPreference mTopIntroPreference;
|
||||
protected SettingsMainSwitchPreference mToggleServiceSwitchPreference;
|
||||
protected ShortcutPreference mShortcutPreference;
|
||||
protected Preference mSettingsPreference;
|
||||
@@ -476,10 +477,10 @@ public abstract class ToggleFeaturePreferenceFragment extends SettingsPreference
|
||||
if (TextUtils.isEmpty(mTopIntroTitle)) {
|
||||
return;
|
||||
}
|
||||
final TopIntroPreference topIntroPreference = new TopIntroPreference(getPrefContext());
|
||||
topIntroPreference.setKey(KEY_TOP_INTRO_PREFERENCE);
|
||||
topIntroPreference.setTitle(mTopIntroTitle);
|
||||
getPreferenceScreen().addPreference(topIntroPreference);
|
||||
mTopIntroPreference = new TopIntroPreference(getPrefContext());
|
||||
mTopIntroPreference.setKey(KEY_TOP_INTRO_PREFERENCE);
|
||||
mTopIntroPreference.setTitle(mTopIntroTitle);
|
||||
getPreferenceScreen().addPreference(mTopIntroPreference);
|
||||
}
|
||||
|
||||
private void initToggleServiceSwitchPreference() {
|
||||
|
Reference in New Issue
Block a user