Update homepage summaries for Display and Security
Also clear the redundant strings and tests. Bug: 183586663 Test: robotests & visual Change-Id: Iff149ac566c4b42d89810fe389ad4f723765b6b5
This commit is contained in:
@@ -33,18 +33,4 @@ public class TopLevelDisplayPreferenceController extends BasePreferenceControlle
|
||||
? AVAILABLE
|
||||
: UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CharSequence getSummary() {
|
||||
final WallpaperPreferenceController controller =
|
||||
new WallpaperPreferenceController(mContext, "unused_key");
|
||||
if (controller.isAvailable()) {
|
||||
return mContext.getText(
|
||||
controller.areStylesAvailable()
|
||||
? R.string.display_dashboard_summary_with_style
|
||||
: R.string.display_dashboard_summary);
|
||||
} else {
|
||||
return mContext.getText(R.string.display_dashboard_nowallpaper_summary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user