Fix logging spam in DashboardFragment.
When updating preferences managed through PreferenceController, the fragment should skip prefs that are not available. Bug: 32255863 Test: RunSettingsRoboTests Change-Id: I2f9b6ddf8c78d40068dc18f07e60672dcba4474a
This commit is contained in:
@@ -67,7 +67,7 @@ public class DozePreferenceController extends PreferenceController implements
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isAvailable() {
|
||||
public boolean isAvailable() {
|
||||
String name = Build.IS_DEBUGGABLE ? SystemProperties.get("debug.doze.component") : null;
|
||||
if (TextUtils.isEmpty(name)) {
|
||||
name = mContext.getResources().getString(
|
||||
|
Reference in New Issue
Block a user